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

Build one or more generated jobs after Process Job DSLs step

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          daspilker 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

          Show
          daspilker 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
          Hide
          arnom Arno Moonen added a comment -

          Daniel Spilker 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.

          Show
          arnom Arno Moonen added a comment - Daniel Spilker 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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: