Skip to content

Commit 12a4d4b

Browse files
author
Evans Aboge (from Dev Box)
committed
Update version check
1 parent 3863d65 commit 12a4d4b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)