Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42697

Add Job DSL Support

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

            daspilker Daniel Spilker
            thehosh Hosh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: