Skip to content

Commit f97bbc3

Browse files
committed
Updated the changes to the deploy pipeline
1 parent 3cbd9d3 commit f97bbc3

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

azure/build-prereqs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ steps:
2525

2626
- bash: |
2727
echo "Checking the python version in use to set LD_LIBRARY_PATH"
28-
echo "Python version selected: $(UsePy.PythonVersion)"
2928
echo "Python location: $(UsePy.pythonLocation)"
3029
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
3130
displayName: 'Set LD_LIBRARY_PATH'

azure/common/apigee-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ jobs:
165165

166166
- bash: |
167167
echo "Checking the python version in use to set LD_LIBRARY_PATH"
168-
echo "Python version selected: $(UsePy.PythonVersion)"
169168
echo "Python location: $(UsePy.pythonLocation)"
170169
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
171170
displayName: 'Set LD_LIBRARY_PATH'

azure/common/deploy-stage.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,26 @@ stages:
123123
role: "auto-ops"
124124
profile: "apm_${{ parameters.aws_account }}"
125125
aws_account: "${{ parameters.aws_account }}"
126-
127-
# - bash: |
128-
# echo "Setting python tool cache path"
129-
# echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]:/agent/_work/_tool/Python/${{ parameters.python_version }}/x64/lib/"
130-
# displayName: 'Set python tool cache path'
126+
127+
- bash: |
128+
PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
129+
| jq -r '[.[] | .tag_name | select(startswith("${{ parameters.python_version }}"))] | sort | last' \
130+
| cut -d- -f1)
131+
echo "Resolved latest python version: $PATCH"
132+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
133+
displayName: 'Query and set python tool cache path'
131134
132135
- task: UsePythonVersion@0
133136
displayName: "Use Python ${{ parameters.python_version }}"
134137
inputs:
135138
versionSpec: ${{ parameters.python_version }}
136139

140+
- bash: |
141+
echo "Checking the python version in use to set LD_LIBRARY_PATH"
142+
echo "Python location: $(UsePy.pythonLocation)"
143+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
144+
displayName: 'Set LD_LIBRARY_PATH'
145+
137146
- template: "../components/set-facts.yml"
138147
parameters:
139148
service_name: ${{ parameters.service_name }}

azure/utils-pr-pipeline.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151

5252
- bash: |
5353
echo "Checking the python version in use to set LD_LIBRARY_PATH"
54-
echo "Python version selected: $(UsePy.PythonVersion)"
5554
echo "Python location: $(UsePy.pythonLocation)"
5655
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
5756
displayName: 'Set LD_LIBRARY_PATH'

0 commit comments

Comments
 (0)