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

Matrix variables are not accessible to shell scripts

XMLWordPrintable

      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

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

              Created:
              Updated: