Disable concurrency on matrix

213 views
Skip to first unread message

Felipe pi pe

unread,
Apr 11, 2020, 9:53:37 AM4/11/20
to Jenkins Users
I have a declarative pipeline set up with a matrix, and I'm trying to get it to only run one of the matrix's cells at a time. I've tried using the "disableConcurrentBuilds" option, but when adding it to the stage's or the matrix's options, I get an error saying it's an invalid option type.

Any ideas? Thanks

Devin Nusbaum

unread,
Apr 13, 2020, 10:28:05 AM4/13/20
to Jenkins Users
I don’t think that there is currently a built-in way to configure the matrix directive in a Declarative Pipeline so that its cells do not run in parallel. You might be able to get the behavior you want using Lockable Resources plugin by acquiring a lock specific to the current build inside of a stage in the matrix.

On Apr 11, 2020, at 08:44, Felipe pi pe <pipe...@gmail.com> wrote:

I have a declarative pipeline set up with a matrix, and I'm trying to get it to only run one of the matrix's cells at a time. I've tried using the "disableConcurrentBuilds" option, but when adding it to the stage's or the matrix's options, I get an error saying it's an invalid option type.

Any ideas? Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/24b54ff1-775d-4d44-b429-2a1d045de712%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages