File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -34,20 +34,25 @@ steps:
3434 - task : AzureCLI@2
3535 displayName : ' Login to Azure Container Registry'
3636 inputs :
37- azureSubscription : ' ACR Push Test' # Use your service connection name here
37+ azureSubscription : ' ACR Push Test'
3838 scriptType : bash
3939 scriptLocation : inlineScript
4040 inlineScript : |
41- az acr login --name $(REGISTRY:$(REGISTRY).azurecr.io)
41+ az acr login --name msgraphpperegistry
4242
4343 - powershell : |
4444 $content = [XML](Get-Content ./src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj)
4545 $version = $content.Project.PropertyGroup.Version
4646 Write-Host "Version found: $version"
47- Write-Host "##vso[task.setvariable variable=version]$version"
47+ Write-Host "##vso[task.setvariable variable=version;isoutput=true ]$version"
4848 displayName: 'Get version from csproj'
4949 name: getversion
5050
51+ - bash : |
52+ # Debug output to verify version variable
53+ echo "Version from previous step: $(getversion.version)"
54+ displayName: 'Verify version variable'
55+
5156 - bash : |
5257 runnumber=$(echo $(Build.BuildNumber) | awk '{ print substr($0, length($0)-3, length($0)) }')
5358 echo "##vso[task.setvariable variable=runnumber]$runnumber"
You can’t perform that action at this time.
0 commit comments