Skip to content

Commit 1dfd0c5

Browse files
committed
Read cisco release version from cisco-8000.ini
1 parent 49d7541 commit 1dfd0c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.azure-pipelines/official-build-cisco-8000.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,17 @@ stages:
4343
submodules: recursive
4444
path: s/platform/cisco-8000
4545
displayName: 'Checkout cisco-8000'
46+
- script: |
47+
cisco_ref=(cat platform/checkout/cisco-8000.ini | grep '^ref=' | cut -d= -f2)
48+
echo "The cisco 8000 release version is $cisco_ref"
49+
echo "##vso[task.setvariable variable=cisco.ref]$cisco_ref"
50+
displayName: 'Export cisco release version'
4651
- task: DownloadGitHubRelease@0
4752
inputs:
4853
connection: cisco-connection
4954
userRepository: Cisco-8000-sonic/platform-cisco-8000
5055
defaultVersionType: specificTag
51-
version: 202012-v0.2
56+
version: $(cisco.ref)
5257
itemPattern: 'artifactory-*.tar.gz'
5358
downloadPath: '$(System.ArtifactsDirectory)'
5459
- script: |

0 commit comments

Comments
 (0)