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

Can not set some 'special' variable names the first time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      * scons plugin installed
      * tested on linux
    • Similar Issues:

      Description

      Envinject fails to set variables mainly with uppercase letters and potential special meaning (at least the first time). See the envinject-test config which is attached.

      Following messages will be output from envinject plugin:

      ...
      [EnvInject] - Injecting as environment variables the properties content
      'baseoutDir=/var/lib/jenkins/workspace/envinject test/dbg_trc
      compileOutput=--baseoutdir="${baseoutDir}"
      CONSFLAGS=${compileOutput}
      ONSFLAGS=${compileOutput}
      NSFLAGS=${compileOutput}
      SFLAGS=${compileOutput}
      FLAGS=${compileOutput}
      LAGS=${compileOutput}
      AGS=${compileOutput}
      GS=${compileOutput}
      SCONSFLAGS=${compileOutput}
      SCONSFLAG=${compileOutput}
      SCONSFLA=${compileOutput}
      SCONSFL=${compileOutput}
      SCONSF=${compileOutput}
      SCONS=${compileOutput}
      SCON=${compileOutput}
      SCO=${compileOutput}
      SC=${compileOutput}
      S=${compileOutput}
      flags=${compileOutput}'

      [EnvInject] - Unset unresolved 'SFLAGS' variable.
      [EnvInject] - Unset unresolved 'SCONSFLAGS' variable.
      [EnvInject] - Unset unresolved 'FLAGS' variable.
      [EnvInject] - Unset unresolved 'SCONS' variable.
      [EnvInject] - Injecting as environment variables the properties content
      'SCONSFLAGS=--baseoutdir="/var/lib/jenkins/workspace/envinject test/dbg_trc"'

      [envinject test] $ /bin/sh -xe /tmp/hudson2448047751840058372.sh

      ...}}

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectScriptExecutorService.java
          src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-scriptContent.html
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-scriptFilePath.html
          http://jenkins-ci.org/commit/envinject-plugin/8dd92f549e85e698afdcf372c7924c378d725c8a
          Log:
          Fix JENKINS-11763

          Compare: https://github.com/jenkinsci/envinject-plugin/compare/0b284d3...8dd92f5

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectScriptExecutorService.java src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-scriptContent.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-scriptFilePath.html http://jenkins-ci.org/commit/envinject-plugin/8dd92f549e85e698afdcf372c7924c378d725c8a Log: Fix JENKINS-11763 Compare: https://github.com/jenkinsci/envinject-plugin/compare/0b284d3...8dd92f5
          Hide
          gbois Gregory Boissinot added a comment -

          Delivered in EnvInject 0.25

          Show
          gbois Gregory Boissinot added a comment - Delivered in EnvInject 0.25

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              marcelhuber Marcel Huber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: