Brian Booyah created JENKINS-13784:
--------------------------------------

             Summary: Environment Variables do not replace in shell scripts
                 Key: JENKINS-13784
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13784
             Project: Jenkins
          Issue Type: Bug
          Components: shell-script-scm
    Affects Versions: current
            Reporter: Brian Booyah
            Assignee: Richard Sczepczenski
            Priority: Blocker


Here is my shell script:

echo ${BUILD_NUMBER};
echo ${SERVER};

sed -e 's/NSString \*SERVER = @"[A-Z0-9]*";/NSString \*SERVER = @"${SERVER}";/g'

Here is the output when the build runs.  Notice the second ${SERVER} is not 
replaced.

+ echo 98
98
+ echo CI1
CI1
+ sed -e 's/NSString \*SERVER = @"[A-Z0-9]*";/NSString \*SERVER = 
@"${SERVER}";/g'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to