Skip to content

Commit

Permalink
test: test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiezhang1997 committed Nov 7, 2024
1 parent abd5d00 commit 34fb001
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pipelines/windows-vpack-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stages:
az account set -s $(AZURE_E2E_SUBSCRIPTION_ID)
VPACK_VM_RESOURCE_GROUP_NAME="vpack-build-$(date +%s)-$RANDOM"
echo "##vso[task.setvariable variable=VPACK_VM_RESOURCE_GROUP_NAME]$VPACK_VM_RESOURCE_GROUP_NAME"
echo "##vso[task.setvariable variable=VPACK_VM_RESOURCE_GROUP_NAME;isOutput=true]$VPACK_VM_RESOURCE_GROUP_NAME"
IMAGE_REFERENCE="MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edition-core:latest"
# IMAGE_REFERENCE="/subscriptions/$AZURE_E2E_IMAGE_SUBSCRIPTION_ID/resourceGroups/$AZURE_E2E_IMAGE_RESOURCE_GROUP_NAME/providers/Microsoft.Compute/galleries/$AZURE_E2E_IMAGE_GALLERY_NAME/images/windows-$WINDOWS_OS_VERSION/versions/latest"
Expand All @@ -32,7 +32,7 @@ stages:
VPACK_VM_RESOURCE_GROUP_NAME: $[ stageDependencies.Create_Windows_VM_Stage.Create_Windows_VM_Job.outputs['Create_Windows_VM_Step.VPACK_VM_RESOURCE_GROUP_NAME'] ]
steps:
- bash: |
echo $(VPACK_VM_RESOURCE_GROUP_NAME)
echo $VPACK_VM_RESOURCE_GROUP_NAME
# cd e2e/windows/
# az vm run-command invoke --command-id RunPowerShellScript \
# --resource-group $VPACK_VM_RESOURCE_GROUP_NAME \
Expand All @@ -47,10 +47,10 @@ stages:
- Create_Windows_VM_Stage
- Exectue_VPack_Script_Stage
condition: always()
variables:
VPACK_VM_RESOURCE_GROUP_NAME: $[ stageDependencies.Create_Windows_VM_Stage.Create_Windows_VM_Job.outputs['Create_Windows_VM_Step.VPACK_VM_RESOURCE_GROUP_NAME'] ]
jobs:
- job: Delete_Windows_VM_Job
variables:
VPACK_VM_RESOURCE_GROUP_NAME: $[ stageDependencies.Create_Windows_VM_Stage.Create_Windows_VM_Job.outputs['Create_Windows_VM_Step.VPACK_VM_RESOURCE_GROUP_NAME'] ]
steps:
- bash: |
echo $(VPACK_VM_RESOURCE_GROUP_NAME)
Expand Down

0 comments on commit 34fb001

Please sign in to comment.