diff --git a/eng/pipelines/templates/jobs/vmr-synchronization.yml b/eng/pipelines/templates/jobs/vmr-synchronization.yml index cbb952202f7b..bb2738990051 100644 --- a/eng/pipelines/templates/jobs/vmr-synchronization.yml +++ b/eng/pipelines/templates/jobs/vmr-synchronization.yml @@ -43,11 +43,11 @@ jobs: pool: ${{ if eq(variables['System.TeamProject'], 'public') }}: name: $(DncEngPublicBuildPool) - image: 1es-ubuntu-2004-open + image: 1es-ubuntu-2204-open os: linux ${{ else }}: name: $(DncEngInternalBuildPool) - demands: ImageOverride -equals 1es-ubuntu-2004 + demands: ImageOverride -equals 1es-ubuntu-2204 os: linux steps: diff --git a/eng/vmr-sync.sh b/eng/vmr-sync.sh index 10d4b1f65f98..ba3dc2bb249f 100755 --- a/eng/vmr-sync.sh +++ b/eng/vmr-sync.sh @@ -239,7 +239,7 @@ set -e highlight 'Installing .NET, preparing the tooling..' source "$scriptroot/common/tools.sh" InitializeDotNetCli true -dotnetDir=$( cd $scriptroot/../.dotnet/; pwd -P ) +dotnetDir=$_InitializeDotNetCli dotnet=$dotnetDir/dotnet "$dotnet" tool restore