Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
Server in Win 7 and Client also in Win 7, Multi-configuration Project
-
-
120.v1307d168def8
Description
Environment variables are not expanding properly in XSHELL command
Ex:
In Xshell, if i give a command as below,
python test.py "$WORKSPACE/sdkljnkjndj/sdkgjnkdjnbg" "http://idc-ws-isparbs.mchp-main.com:8080/job/$JOB_NAME/$BUILD_NUMBER"
and if i print the parameters in test.py, I get the following
'%WORKSPACE\\sdkljnkjndj
sdkgjnkdjnbg%'
'http://idc-ws-isparbs.mchp-main.com:8080/job/%JOB_NAME/25%'
I also get few '%' characters appended to the output
I was expecting the output as
'C:\\WS\\sdkljnkjndj
sdkgjnkdjnbg'
'http://idc-ws-isparbs.mchp-main.com:8080/job/test_job/25'
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Summary | Some of the Environment Variables are not | Some of the Environment Variables are not expanding properly |
Labels | plugin |
Labels | plugin | plugin windows |
Labels | plugin windows | plugin windows xshell |
Workflow | JNJira [ 152003 ] | JNJira + In-Review [ 178149 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Fixed but Unreleased [ 10203 ] |
Released As | 120.v1307d168def8 | |
Status | Fixed but Unreleased [ 10203 ] | Closed [ 6 ] |
I've got the same issue on mac:
The command I ran:
echo "mozdownload --type=$BUILD_TYPE --branch=mozilla-aurora --platform=$PLATFORM --locale=$LOCALE --build-id=$BUILD_ID --date=$DATE --retry-attempts=10 --retry-delay=30 --directory=builds"
The result is:
mozdownload --type=tinderbox --branch=mozilla-aurora --platform=mac --locale=an --build-id=20140127004003 --date=$DATE --retry-attempts=10 --retry-delay=30 --directory=builds