Add Job DSL Support

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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)
        }
      }

            Assignee:
            Daniel Spilker
            Reporter:
            Hosh
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: