Skip to content

Commit

Permalink
[CI] Add file with version to build artifacts (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
DordeDimitrijev authored Sep 13, 2024
1 parent 0a445e5 commit 5ed38b9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .azurepipelines/publish-maven-1ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ extends:
sdl:
sourceAnalysisPool: 1ES-PT-Windows-2022
stages:
- stage: stage
- stage: BuildArtifacts
displayName: Build Artifacts and collect version info
jobs:
- job: Phase_1
displayName: MacOS
- job: BuildArtifacts
displayName: Build Artifacts
cancelTimeoutInMinutes: 1
templateContext:
sdl:
Expand Down Expand Up @@ -74,17 +75,16 @@ extends:
inputs:
tasks: publish
publishJUnitResults: false
- task: SFP.release-tasks.custom-build-release-task.EsrpRelease@4
displayName: ESRP Release
- task: Bash@3
displayName: 'Extract Version info'
inputs:
ConnectedServiceName: ESRP Release
FolderLocation: $(Build.ArtifactStagingDirectory)/com/microsoft
Owners: lucen@microsoft.com
Approvers: lucen@microsoft.com
enabled: true

targetType: 'inline'
script: |
VERSION=$(grep "versionName = '" versions.gradle | awk -F "[']" '{print $2}')
echo $VERSION > $(Build.ArtifactStagingDirectory)/com/microsoft/version
- stage: APIScan
dependsOn: Stage
dependsOn: BuildArtifacts
pool:
name: 1ES-PT-Windows-2022
os: windows
Expand Down

0 comments on commit 5ed38b9

Please sign in to comment.