Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use devinfra assistant PAT in windows VHD automation pipeline #4410

Merged
merged 3 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading