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

Parameters are not set in environment which "Build Review" is used

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None
    • Jenkins ver. 1.580
      P4 plugin ver. 1.1.4

      Steps to reproduce:
      1. Create a multi-configuration project
      2. Configure at least one parmeter for the project and make sure it has a default value
      3. Configure a Perforce workspace setting

      • I used the stream settings for mine

      4. Define axis

      • I have 3 defined:
        • 1 Slave axis
        • 2 custom axis;
      • each of my axis only has one value (so it is like there is only one configuration with potential to create more)

      5. For the build step, print out the environment (e.g. call env)
      6. Build project using "Build with parameters" button

      • Notice the environment contains the parameter(s) you configured

      7. Build project using "Build Review" button

      • Notice the environment does not contain the parameter(s) you configured

          [JENKINS-27266] Parameters are not set in environment which "Build Review" is used

          Michael Rose added a comment -

          I have confirmed that the issue still exists when there are multiple build configurations

          Michael Rose added a comment - I have confirmed that the issue still exists when there are multiple build configurations

          Paul Allen added a comment -

          The two options are mutually exclusive, just like 'Build' and 'Build with parameters'. 'Build review' is a 3rd build option, using it's own parameters, independent of the 'Build with parameters'.

          Paul Allen added a comment - The two options are mutually exclusive, just like 'Build' and 'Build with parameters'. 'Build review' is a 3rd build option, using it's own parameters, independent of the 'Build with parameters'.

          Mirek Sz added a comment -

          p4paul So, just to confirm - it's impossible to build review for jobs that use "build with parameters"?

          Mirek Sz added a comment - p4paul So, just to confirm - it's impossible to build review for jobs that use "build with parameters"?

          Paul Allen added a comment -

          The parameters for 'Build Review' are fixed (for a FreeStyle job). However, pipeline offers a lot of flexibility which I have not explored.

          I am open to passing custom parameters, but how will you send them from Swarm or are you using a different review tool?

          Paul Allen added a comment - The parameters for 'Build Review' are fixed (for a FreeStyle job). However, pipeline offers a lot of flexibility which I have not explored. I am open to passing custom parameters, but how will you send them from Swarm or are you using a different review tool?

          Mirek Sz added a comment -

          Those custom parameters can be sent just the same as the "review", "change" and "status" ones - via GET request.

          See https://wiki.jenkins.io/display/JENKINS/Parameterized+Build - "Launching a build with parameters"

          Mirek Sz added a comment - Those custom parameters can be sent just the same as the "review", "change" and "status" ones - via GET request. See https://wiki.jenkins.io/display/JENKINS/Parameterized+Build - "Launching a build with parameters"

          Mirek Sz added a comment -

          Any updates on this?

          Mirek Sz added a comment - Any updates on this?

            p4paul Paul Allen
            mrose Michael Rose
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: