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

Parameterized Trigger Plugin for multi-configuration project

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • None
    • Jenkins ver. 1.427
      Parameterized Trigger Plugin 2.12

      The parameterised plugin doesn't include the "label name" in the JOB_NAME environment variable in a multi-configuration project. This was a useful feature in hudson.

      The downstream project needs to know which label the parent job ran from and take a course of action based on that.

      For example, when passing the job name to a downstream project, I would expect the variable to contain job-Test\label=windows and not just job-Test

      Can this issue be fixed and allow the passing of the correct label in the job name?

          [JENKINS-12140] Parameterized Trigger Plugin for multi-configuration project

          Mee Kwan created issue -
          Mee Kwan made changes -
          Description Original: The parameterised plugin doesn't include the "label name" in the JOB_NAME environment variable in a multi-configuration project. This was a useful feature in hudson.

          The downstream project needs to know which label the parent job ran from and take a course of action based on that.

          Can this issue be fixed and allow the passing of the correct label in the job name?
          New: The parameterised plugin doesn't include the "label name" in the JOB_NAME environment variable in a multi-configuration project. This was a useful feature in hudson.

          The downstream project needs to know which label the parent job ran from and take a course of action based on that.

          For example, when passing the job name to a downstream project, I would expect the variable to contain job-Test\label=windows and not just job-Test

          Can this issue be fixed and allow the passing of the correct label in the job name?

          cjo9900 added a comment -

          Is this a post-build trigger or as a buildstep.

          If done as a post-build step the downsteam jobs are triggered only once from the parent matrix project so does not have access to the full paths and labels for all of the configurations. only that of the parent job variables which JOB_NAME in this case is the name of the job.

          If triggered as a buildstep then the JOB_NAME environment variable should match what is available in the shell for that configuration.

          cjo9900 added a comment - Is this a post-build trigger or as a buildstep. If done as a post-build step the downsteam jobs are triggered only once from the parent matrix project so does not have access to the full paths and labels for all of the configurations. only that of the parent job variables which JOB_NAME in this case is the name of the job. If triggered as a buildstep then the JOB_NAME environment variable should match what is available in the shell for that configuration.

          evernat added a comment -

          No response from the reporter, so resolving the issue as incomplete.

          evernat added a comment - No response from the reporter, so resolving the issue as incomplete.
          evernat made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 142462 ] New: JNJira + In-Review [ 190119 ]

            huybrechts huybrechts
            m33m33fk Mee Kwan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: