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

An intuïtive way to pass a variable/parameter (e.g. multijob build number) to all its downstream jobs.

    XMLWordPrintable

Details

    Description

      The current multijob implementation passes parameters to the specific downstream job builds that are part of it. The master value overwrites the default values of the downstream jobs for that parameters.

      It would be handy if the multijob plugin has an intuïtive way to pass select information to these specific downstream builds.

      This would allow the batch to overwrite a downstream job parameter with a value that is fixed (non-interactive) at the multijob level. Or it would allow to pass the multijob build number as a value with a specific name (e.g. BATCH_NUMBER) chosen by the user.

      The downstream jobs can then check if this value exists, otherwise it will be an unresolvable macro and just stay empty.

      Use case:
      Using the build-name-setter plugin, the downstream build numbers could be set to ${BUILD_NUMBER}${BATCH_NUMBER}, where batch number is either empty (when the downstream job is run on its own) or " - Batch ${BUILD_NUMBER}" (when the variable was set in the upstream multijob project).

      Attachments

        Activity

          tbacker Brother Bear created issue -
          ircbot Jenkins IRC Bot made changes -
          Field Original Value New Value
          Component/s core [ 15593 ]
          Component/s parameters [ 15594 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 149123 ] JNJira + In-Review [ 177258 ]
          oleg_nenashev Oleg Nenashev made changes -
          Component/s core [ 15593 ]
          Component/s envinject-plugin [ 15893 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Gregory Boissinot [ gbois ]
          tbacker Brother Bear made changes -
          Comment [ Is there any progress on this already? Thanks! ]
          yorammi Yoram Michaeli made changes -
          Resolution Postponed [ 6 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

            Unassigned Unassigned
            tbacker Brother Bear
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: