Skip to content

Commit 67f1753

Browse files
committed
DEBUG2
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent de92ca1 commit 67f1753

1 file changed

Lines changed: 11 additions & 42 deletions

File tree

.azure-pipelines/release.yml

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -90,29 +90,8 @@ extends:
9090
image: win-x86_64-ado1es
9191
os: windows
9292
stages:
93-
- stage: prebuild
94-
displayName: 'Pre-build Validation'
95-
jobs:
96-
- job: vars
97-
displayName: 'Read variables'
98-
pool:
99-
name: GitClientPME-1ESHostedPool-intel-pc
100-
image: ubuntu-x86_64-ado1es
101-
os: linux
102-
steps:
103-
- checkout: self
104-
- task: Bash@3
105-
displayName: 'Read version file'
106-
name: version
107-
inputs:
108-
targetType: inline
109-
script: |
110-
# Set the version variable for later stages to consume
111-
echo "##vso[task.setvariable variable=value;isOutput=true;isReadOnly=true]$(cat ./VERSION | sed -E 's/.[0-9]+$//')"
112-
11393
- stage: build
11494
displayName: 'Build and Sign'
115-
dependsOn: prebuild
11695
jobs:
11796
#
11897
# Windows build jobs
@@ -124,8 +103,6 @@ extends:
124103
name: ${{ dim.pool }}
125104
image: ${{ dim.image }}
126105
os: ${{ dim.os }}
127-
variables:
128-
version: $[stageDependencies.prebuild.vars.outputs['version.value']]
129106
templateContext:
130107
outputs:
131108
- output: pipelineArtifact
@@ -159,7 +136,7 @@ extends:
159136
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)\symbols_raw'
160137
includeRootFolder: false
161138
archiveType: zip
162-
archiveFile: '$(Build.ArtifactStagingDirectory)\symbols\gcm-win-x86-$(version)-symbols.zip'
139+
archiveFile: '$(Build.ArtifactStagingDirectory)\symbols\gcm-win-x86-99.99.99-symbols.zip'
163140
- task: EsrpCodeSigning@5
164141
condition: and(succeeded(), eq('${{ parameters.esrp }}', true))
165142
displayName: 'Sign payload'
@@ -260,8 +237,6 @@ extends:
260237
name: ${{ dim.pool }}
261238
image: ${{ dim.image }}
262239
os: ${{ dim.os }}
263-
variables:
264-
version: $[stageDependencies.prebuild.vars.outputs['version.value']]
265240
templateContext:
266241
outputs:
267242
- output: pipelineArtifact
@@ -297,7 +272,7 @@ extends:
297272
includeRootFolder: false
298273
archiveType: tar
299274
tarCompression: gz
300-
archiveFile: '$(Build.ArtifactStagingDirectory)/symbols/gcm-${{ dim.runtime }}-$(version)-symbols.tar.gz'
275+
archiveFile: '$(Build.ArtifactStagingDirectory)/symbols/gcm-${{ dim.runtime }}-99.99.99-symbols.tar.gz'
301276
- task: AzureKeyVault@2
302277
displayName: 'Download developer certificate'
303278
inputs:
@@ -427,7 +402,7 @@ extends:
427402
targetType: filePath
428403
filePath: './src/osx/Installer.Mac/pack.sh'
429404
arguments: |
430-
--version="$(version)" \
405+
--version="99.99.99" \
431406
--payload="$(Build.ArtifactStagingDirectory)/payload" \
432407
--output="$(Build.ArtifactStagingDirectory)/pkg/com.microsoft.gitcredentialmanager.component.pkg"
433408
- task: Bash@3
@@ -436,10 +411,10 @@ extends:
436411
targetType: filePath
437412
filePath: './src/osx/Installer.Mac/dist.sh'
438413
arguments: |
439-
--version="$(version)" \
414+
--version="99.99.99" \
440415
--runtime="${{ dim.runtime }}" \
441416
--package-path="$(Build.ArtifactStagingDirectory)/pkg" \
442-
--output="$(Build.ArtifactStagingDirectory)/installers/gcm-${{ dim.runtime }}-$(version).pkg"
417+
--output="$(Build.ArtifactStagingDirectory)/installers/gcm-${{ dim.runtime }}-99.99.99.pkg"
443418
# ESRP code signing for macOS requires the files be packaged in a zip file first
444419
- task: Bash@3
445420
displayName: 'Prepare installer package for signing'
@@ -519,8 +494,6 @@ extends:
519494
name: ${{ dim.pool }}
520495
image: ${{ dim.image }}
521496
os: ${{ dim.os }}
522-
variables:
523-
version: $[stageDependencies.prebuild.vars.outputs['version.value']]
524497
templateContext:
525498
outputs:
526499
- output: pipelineArtifact
@@ -555,7 +528,7 @@ extends:
555528
targetType: filePath
556529
filePath: './src/linux/Packaging.Linux/pack.sh'
557530
arguments: |
558-
--version="$(version)" \
531+
--version="99.99.99" \
559532
--runtime="${{ dim.runtime }}" \
560533
--payload="$(Build.ArtifactStagingDirectory)/payload" \
561534
--symbols="$(Build.ArtifactStagingDirectory)/symbols_raw" \
@@ -612,8 +585,6 @@ extends:
612585
name: GitClientPME-1ESHostedPool-intel-pc
613586
image: ubuntu-x86_64-ado1es
614587
os: linux
615-
variables:
616-
version: $[stageDependencies.prebuild.vars.outputs['version.value']]
617588
templateContext:
618589
outputs:
619590
- output: pipelineArtifact
@@ -684,7 +655,7 @@ extends:
684655
filePath: './src/shared/DotnetTool/pack.sh'
685656
arguments: |
686657
--configuration=Release \
687-
--version="$(version)" \
658+
--version="99.99.99" \
688659
--package-root="$(Build.ArtifactStagingDirectory)/payload" \
689660
--output="$(Build.ArtifactStagingDirectory)/packages"
690661
- task: EsrpCodeSigning@5
@@ -715,7 +686,7 @@ extends:
715686
716687
- stage: release
717688
displayName: 'Release'
718-
dependsOn: [prebuild, build]
689+
dependsOn: [build]
719690
condition: and(succeeded(), or(eq('${{ parameters.github }}', true), eq('${{ parameters.nuget }}', true)))
720691
jobs:
721692
- job: github
@@ -725,8 +696,6 @@ extends:
725696
name: GitClientPME-1ESHostedPool-intel-pc
726697
image: ubuntu-x86_64-ado1es
727698
os: linux
728-
variables:
729-
version: $[stageDependencies.prebuild.vars.outputs['version.value']]
730699
templateContext:
731700
type: releaseJob
732701
isProduction: true
@@ -766,10 +735,10 @@ extends:
766735
inputs:
767736
gitHubConnection: $(githubConnectionName)
768737
repositoryName: git-ecosystem/git-credential-manager
769-
tag: 'v$(version)'
738+
tag: 'v99.99.99'
770739
tagSource: userSpecifiedTag
771740
target: release
772-
title: 'GCM $(version)'
741+
title: 'GCM 99.99.99'
773742
isDraft: true
774743
addChangeLog: false
775744
assets: |
@@ -792,7 +761,7 @@ extends:
792761
image: ubuntu-x86_64-ado1es
793762
os: linux
794763
variables:
795-
version: $[stageDependencies.prebuild.vars.outputs['version.value']]
764+
version: 99.99.99
796765
templateContext:
797766
inputs:
798767
- input: pipelineArtifact

0 commit comments

Comments
 (0)