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

          Hide
          15knots Martin Weber added a comment -

          Could you please explain how this is related to cmakebuilder-plugin ?

          Show
          15knots Martin Weber added a comment - Could you please explain how this is related to cmakebuilder-plugin ?

            People

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

              Dates

              • Created:
                Updated: