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

Build one or more generated jobs after Process Job DSLs step

      After the Process Job DSLs step has finished, I would like to run one or more of the jobs that have been created.
      Consider this to be the ultimate test for the updated script (so yes, the XML looks fine, but does it still function properly too?).
      Since we are running the scripts from our VCS and the names of the jobs can vary, it would be nice to have some way of indicating the jobs that should be started in the Job DSL script.
      In our case we only need to start one multijob, but in total there are 8+ jobs being created per script.

          [JENKINS-34431] Build one or more generated jobs after Process Job DSLs step

          Have you seen the queue command? Would that work for you?
          https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-DSL-Commands#queue

          Daniel Spilker added a comment - Have you seen the queue command? Would that work for you? https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-DSL-Commands#queue

          Arno Moonen added a comment -

          daspilker You are right! Thanks!

          I was pretty sure that such a command existed, but I could not find it when searching for triggering / running builds.

          Arno Moonen added a comment - daspilker You are right! Thanks! I was pretty sure that such a command existed, but I could not find it when searching for triggering / running builds.

            Unassigned Unassigned
            arnom Arno Moonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: