Details

    • Similar Issues:

      Description

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

        Attachments

          Activity

          Hide
          daspilker Daniel Spilker added a comment -

          You can use the Automatically Generated DSL:

          job(String name) {
            wrappers {
              exclusiveBuildWrapper {
                enabled(boolean value)
                skipWaitOnRunningJobs(boolean value)
              }
            }
          }
          
          Show
          daspilker Daniel Spilker added a comment - You can use the Automatically Generated DSL : job( String name) { wrappers { exclusiveBuildWrapper { enabled( boolean value) skipWaitOnRunningJobs( boolean value) } } }

            People

            • Assignee:
              daspilker Daniel Spilker
              Reporter:
              thehosh Hoshang Sadiq
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: