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

Provide environment variables like Parameterized Trigger Plugin

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • multijob-plugin
    • None

      The Parameterized Trigger Plugin, which the MultiJob Plugin depends on, makes the following environment variables available to future build steps if "Block until the triggered projects finish their builds" is enabled:

      • LAST_TRIGGERED_JOB_NAME="Last project started"
      • TRIGGERED_BUILD_NUMBER_<project name>="Last build number triggered"
      • TRIGGERED_JOB_NAMES="Comma separated list of all triggered projects"
      • TRIGGERED_BUILD_NUMBERS_<project name>="Comma separated list of build numbers triggered"
      • TRIGGERED_BUILD_RESULT_<project name>="Last triggered build result of project"
      • TRIGGERED_BUILD_RESULT_<project name>RUN<build number>="Result of triggered build for build number"
      • TRIGGERED_BUILD_RUN_COUNT_project name>="Number of builds triggered for the project"

      It would be nice to have these for each phase (prefixed with the phase name)), too. Esp. TRIGGERED_BUILD_NUMBERS is important if artifacts need to copied from the triggered builds.

          [JENKINS-25675] Provide environment variables like Parameterized Trigger Plugin

          Sebastian Schuberth created issue -
          Sebastian Schuberth made changes -
          Description Original: The Parameterized Trigger Plugin, which the MultiJob Plugin depends on, makes the following environment variables available to future build steps:

          * LAST_TRIGGERED_JOB_NAME="Last project started"
          * TRIGGERED_BUILD_NUMBER_<project name>="Last build number triggered"
          * TRIGGERED_JOB_NAMES="Comma separated list of all triggered projects"
          * TRIGGERED_BUILD_NUMBERS_<project name>="Comma separated list of build numbers triggered"
          * TRIGGERED_BUILD_RESULT_<project name>="Last triggered build result of project"
          * TRIGGERED_BUILD_RESULT_<project name>RUN<build number>="Result of triggered build for build number"
          * TRIGGERED_BUILD_RUN_COUNT_project name>="Number of builds triggered for the project"

          It would be nice to have these with the MultiJob Plugin, too. Esp. TRIGGERED_BUILD_NUMBERS is important if artifacts need to copied from the triggered builds.
          New: The Parameterized Trigger Plugin, which the MultiJob Plugin depends on, makes the following environment variables available to future build steps if "Block until the triggered projects finish their builds" is enabled:

          * LAST_TRIGGERED_JOB_NAME="Last project started"
          * TRIGGERED_BUILD_NUMBER_<project name>="Last build number triggered"
          * TRIGGERED_JOB_NAMES="Comma separated list of all triggered projects"
          * TRIGGERED_BUILD_NUMBERS_<project name>="Comma separated list of build numbers triggered"
          * TRIGGERED_BUILD_RESULT_<project name>="Last triggered build result of project"
          * TRIGGERED_BUILD_RESULT_<project name>RUN<build number>="Result of triggered build for build number"
          * TRIGGERED_BUILD_RUN_COUNT_project name>="Number of builds triggered for the project"

          It would be nice to have these for each phase (prefixed with the phase name)), too. Esp. TRIGGERED_BUILD_NUMBERS is important if artifacts need to copied from the triggered builds.
          Mathieu Cantin made changes -
          Assignee New: Mathieu Cantin [ mcantin ]
          Sebastian Schuberth made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Sebastian Schuberth made changes -
          Link New: This issue is related to JENKINS-29229 [ JENKINS-29229 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 159651 ] New: JNJira + In-Review [ 196154 ]

            mcantin Mathieu Cantin
            sschuberth Sebastian Schuberth
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: