Skip to content

Commit

Permalink
Fix acr
Browse files Browse the repository at this point in the history
  • Loading branch information
Evans Aboge (from Dev Box) committed Jan 31, 2025
1 parent ec54c4c commit 34eb849
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .azure-pipelines/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ extends:
- stage: Build
jobs:
- job: build
variables:
version: ''
steps:
- task: UseDotNet@2
displayName: 'Use .NET 8'
Expand Down Expand Up @@ -88,8 +90,10 @@ extends:
docker version
docker info
displayName: Show docker environment
- script: echo "##vso[task.setvariable variable=BUILDNUMBER]$(Build.BuildId)"
displayName: 'Set BUILDNUMBER variable'

- powershell: |
.\scripts\get-prerelease-version.ps1 -currentBranch $(Build.SourceBranch) -previewBranch $(PREVIEW_BRANCH) -excludeHeadingDash -isGHA
displayName: "Set version suffix"
Expand All @@ -103,12 +107,13 @@ extends:
condition: contains(variables['Build.SourceBranch'], variables['PREVIEW_BRANCH'])
- powershell: |
.\scripts\get-version-from-csproj.ps1 -isGHA
$version = .\scripts\get-version-from-csproj.ps1 -isGHA
Write-Host "##vso[task.setvariable variable=version]$version"
displayName: "Get Kiota's version-number from .csproj"
name: getversion
- powershell: |
.\scripts\get-release-notes.ps1 -version "$(getversion.version)"
.\scripts\get-release-notes.ps1 -version "$(version)"
displayName: "Get release notes from CHANGELOG.md"
condition: not(contains(variables['Build.SourceBranch'], variables['PREVIEW_BRANCH']))
Expand Down

0 comments on commit 34eb849

Please sign in to comment.