Skip to content

Commit b3139b6

Browse files
vyadavmsftbryteise
authored andcommitted
Update the way to download
1 parent f92ab11 commit b3139b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Jenkinsfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ pipeline{
2323
}
2424
stage ('Worker build') {
2525
agent { node { label 'groovy-libvirt' } }
26+
environment {
27+
AZURE_CONNECTION_STRING = credentials('46b4e7d6-315f-4cc1-8333-b58780863b9b')
28+
}
2629
stages {
2730
stage ('Checkout') {
2831
steps {
@@ -33,11 +36,7 @@ pipeline{
3336
steps {
3437
sh "sudo apt install -y azure-cli"
3538
sh "mkdir -p ${env.HOME}/workloads"
36-
azureDownload(storageCredentialId: 'ch-image-store',
37-
containerName: 'private-images',
38-
includeFilesPattern: 'OVMF-4b47d0c6c8.fd',
39-
downloadType: 'container',
40-
downloadDirLoc: "${env.HOME}/workloads")
39+
sh 'az storage blob download --container-name private-images --file "$HOME/workloads/OVMF-4b47d0c6c8.fd" --name OVMF-4b47d0c6c8.fd --connection-string "$AZURE_CONNECTION_STRING"'
4140
}
4241
}
4342
stage ('Install dependencies') {

0 commit comments

Comments
 (0)