Skip to content

Commit

Permalink
chore: use devinfra assistant PAT in windows VHD automation pipeline (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiezhang1997 authored May 27, 2024
1 parent 8b38584 commit ee83d69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .pipelines/.vsts-vhd-windows-automation.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pool:
# uncomment this if the auto teardown pool is down.
# vmImage: ubuntu-22.04
name: $(1ES_DevInfra_Auto_TearDown_Pool_Name)
name: $(AZURE_POOL_NAME)

parameters:
- name: ImageBump
Expand All @@ -16,13 +16,16 @@ parameters:
type: boolean
default: false

variables:
- group: "AKS Dev Assistant (KV)"

steps:
- bash: |
az extension add -n azure-devops
echo $MAPPED_ADO_PAT | az devops login --organization=https://dev.azure.com/msazure
az devops configure --defaults organization=https://dev.azure.com/msazure project=CloudNativeCompute
env:
MAPPED_ADO_PAT: $(ADO_PAT)
MAPPED_ADO_PAT: $(PAT-aksdevassistant)
displayName: 'az devops login'
- bash: |
echo "Bumping windows VHD base image version"
Expand All @@ -47,7 +50,7 @@ steps:
/bin/bash vhdbuilder/scripts/windows/automate_release_notes.sh $BUILD_ID $MAPPED_GITHUB_PAT '${{ parameters.GithubUserName }}'
env:
MAPPED_GITHUB_PAT: $(GITHUB_PAT)
MAPPED_ADO_PAT: $(ADO_PAT)
MAPPED_ADO_PAT: $(PAT-aksdevassistant)
displayName: 'Release Notes'
condition: eq('${{ parameters.ReleaseNotes }}', true)

2 changes: 0 additions & 2 deletions vhdbuilder/scripts/windows/automate_release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ set -euxo pipefail

source vhdbuilder/scripts/windows/automate_helpers.sh

az login --identity

echo "Build Id is $1"

build_id=$1
Expand Down

0 comments on commit ee83d69

Please sign in to comment.