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

Xcode plugin: Can't use environment variable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • xcode-plugin
    • None
    • Jenkins Version: 1.544
      Xcode Plugin Version: 1.4.1

    Description

      Xcode plugin doesn't populate any variable passed through shell (just above it).
      The Variables are passed using export. But in the xcode plugin they remain unchanged.
      Example: /Users/haps/Downloads/${EMBED}
      OR: PROVISIONING_PROFILE=${PROVISIONING_PROFILE}

      The first one of from "Embedded Profile" field and later from "Custom xcodebuild arguments"

      Also JENKINS-14375 says that this issue was solved in xcode version 1.3.1, but somehow seems to be reappeared in newer one.

      Attachments

        Activity

          lacostej lacostej added a comment -

          I am not sure this is supposed to work:

          Building in workspace /Users/lacostej/.jenkins/jobs/test_shell_export/workspace
          [workspace] $ /bin/sh -xe /var/folders/zh/pbp2qp89321_0v_hq8fp_qv40000gn/T/hudson8776117682287385802.sh
          + CVSRTR=toto
          + export CVSRTR
          [workspace] $ /bin/sh -xe /var/folders/zh/pbp2qp89321_0v_hq8fp_qv40000gn/T/hudson1269574960451974800.sh
          + echo 'CVSRTR '
          CVSRTR 
          

          So shells are not able to export env. variables to following build steps.

          I use EnvInject or similar to do this.

          Closing issue.

          lacostej lacostej added a comment - I am not sure this is supposed to work: Building in workspace /Users/lacostej/.jenkins/jobs/test_shell_export/workspace [workspace] $ /bin/sh -xe / var /folders/zh/pbp2qp89321_0v_hq8fp_qv40000gn/T/hudson8776117682287385802.sh + CVSRTR=toto + export CVSRTR [workspace] $ /bin/sh -xe / var /folders/zh/pbp2qp89321_0v_hq8fp_qv40000gn/T/hudson1269574960451974800.sh + echo 'CVSRTR ' CVSRTR So shells are not able to export env. variables to following build steps. I use EnvInject or similar to do this. Closing issue.

          People

            Unassigned Unassigned
            wharpreet wharpreet
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: