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

Matrix variables are not accessible to shell scripts

    Details

    • Similar Issues:

      Description

      When I create a multiple configuration project with user-defined axes, the variables are not accessible to the rest of the project. For example, if I create the variable buildConfig, and give it two values, Release and Debug, I can show it using a batch command:

      echo buildConfig = %buildConfig%

      This correctly displays "buildConfig = Release" or "buildConfig = Debug".

      But if I add a shell command:

      echo buildConfig = $buildConfig

      This shows only "buildConfig = "

      Neither %buildConfig%, $buildConfig, nor ${buildConfig} results in the correct replacement.

      I have only tested this on Windows

        Attachments

          Activity

          rvkennedy Roderick Kennedy created issue -
          15knots Martin Weber made changes -
          Field Original Value New Value
          Component/s matrix-project-plugin [ 18765 ]
          Component/s cmakebuilder-plugin [ 15966 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 164272 ] JNJira + In-Review [ 181574 ]
          jglick Jesse Glick made changes -
          Labels envinronment-variables matrix envinronment-variables environment-variables matrix
          jglick Jesse Glick made changes -
          Labels envinronment-variables environment-variables matrix environment-variables matrix

            People

            • Assignee:
              Unassigned
              Reporter:
              rvkennedy Roderick Kennedy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: