-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: exclusive-execution-plugin, job-dsl-plugin
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)
}
}