-
New Feature
-
Resolution: Fixed
-
Minor
-
None
Using the Job DSL plugin, it's only possible to make a job exclusive by adding a configure block:
job{ configure { project -> project / 'buildWrappers' / 'hudson.plugins.execution.exclusive.ExclusiveBuildWrapper' { skipWaitOnRunningJobs(false) } } }
It would be nice to add this to the builtin buildWrappers, something along the lines of:
job{ wrappers{ exclusiveBuild(boolean runBuildExclusive = true, boolean skipWaitOnRunningJobs = false) } }