adding a way to provide custom container to upload artifact

This commit is contained in:
Manish Satwani 2024-01-13 00:02:00 +00:00
Родитель 87048b99a3
Коммит 23fde9d16e
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -9,6 +9,8 @@ org=$1
projectGuid=$2 projectGuid=$2
pipelineId=$3 pipelineId=$3
subscription=$4 subscription=$4
container="${5:-packages}"
# get the latest build of the linux pipeline from devops # get the latest build of the linux pipeline from devops
latestbuild=$(az pipelines runs list --org $org --project "$projectGuid" --pipeline-ids $pipelineId | jq "[.[].id] | sort | last") latestbuild=$(az pipelines runs list --org $org --project "$projectGuid" --pipeline-ids $pipelineId | jq "[.[].id] | sort | last")
@ -28,4 +30,5 @@ cp ../../../../bin/* /tmp/linux_artifact/caps/ApplicationHealthLinuxTest/v2/Serv
cd /tmp/linux_artifact/caps/ApplicationHealthLinuxTest/v2/ServiceGroupRoot/unzipped && zip -r /tmp/vmwatch.zip . && cd - cd /tmp/linux_artifact/caps/ApplicationHealthLinuxTest/v2/ServiceGroupRoot/unzipped && zip -r /tmp/vmwatch.zip . && cd -
# upload it to the storage account # upload it to the storage account
echo "Uploading linux.zip to container: $container"
az storage blob upload --account-name vmwatchtest --subscription $subscription --container-name packages --name linux.zip --file /tmp/vmwatch.zip --overwrite az storage blob upload --account-name vmwatchtest --subscription $subscription --container-name packages --name linux.zip --file /tmp/vmwatch.zip --overwrite