I have a build pipeline which executes a script that creates and uploads a pipeline.
This is what it uploads:
steps:
- commands:
- echo “PERFORCE_DATACL=${PERFORCE_DATACL}”
- echo “PERFORCE_DATADESCRIPTION=${PERFORCE_DATADESCRIPTION}”
- echo “GIT_COMMIT_BRANCH=${GIT_COMMIT_BRANCH}”
- echo “GIT_COMMIT_SHA=${GIT_COMMIT_SHA}”
- echo “GIT_COMMIT_DESCRIPTION=${GIT_COMMIT_DESCRIPTION}”
plugins:- thedyrt/skip-checkout#v0.1.1: ~
agents:- “queue=ue4-gcp”
env:
PERFORCE_DATACL: “1234”
PERFORCE_DATADESCRIPTION: “2019/10/03 by [xxx@xxx] ‘xxxxxx’”
GIT_COMMIT_SHA: “3aaee6245c5059e6b295ac0ba6f92da88a956496”
GIT_COMMIT_DESCRIPTION: “Fixing xxxxxx”
GIT_COMMIT_BRANCH: “yyyy”
I would expect that when the commands execute it would pick up the ‘env’ section but it does not, the output for the commands is this:
“PERFORCE_DATACL=”
“PERFORCE_DATADESCRIPTION=”
“GIT_COMMIT_BRANCH=”
“GIT_COMMIT_SHA=”
“GIT_COMMIT_DESCRIPTION=”
I was expecting this:
“PERFORCE_DATACL=1234”
“PERFORCE_DATADESCRIPTION=2019/10/03 by [xxx@xxx] ‘xxxxxx’”
“GIT_COMMIT_BRANCH=yyyy”
“GIT_COMMIT_SHA=3aaee6245c5059e6b295ac0ba6f92da88a956496”
“GIT_COMMIT_DESCRIPTION=Fixing xxxxxx”
This runs on a windows build agent if that is of interest…