@@ -25,7 +25,12 @@ extends:
2525 stages :
2626 - stage : Stage
2727 jobs :
28- - job : HostJob
28+ - job : Build
29+ templateContext :
30+ outputs :
31+ - output : pipelineArtifact
32+ path : $(Build.ArtifactStagingDirectory)/esrp-build
33+ artifact : esrp-build
2934 steps :
3035 - bash : |
3136 if [[ ! "$CURRENT_BRANCH" =~ ^release-.* ]]; then
@@ -50,28 +55,39 @@ extends:
5055 - bash : ./scripts/download_driver.sh
5156 displayName : ' Download driver'
5257
53- - bash : mvn -B deploy -D skipTests --no-transfer-progress --activate-profiles release -D gpg.passphrase=$GPG_PASSPHRASE -DaltDeploymentRepository=snapshot-repo::default::file:$(pwd)/local -build
58+ - bash : mvn -B deploy -D skipTests --no-transfer-progress --activate-profiles release -D gpg.passphrase=$GPG_PASSPHRASE -DaltDeploymentRepository=snapshot-repo::default::file:$(Build.ArtifactStagingDirectory)/esrp -build
5459 displayName : ' Build and deploy to a local directory'
5560 env :
5661 GPG_PASSPHRASE : $(GPG_PASSPHRASE) # secret variable has to be mapped to an env variable
57-
58- - task : EsrpRelease@7
62+
63+ - job : Publish
64+ dependsOn : Build
65+ templateContext :
66+ type : releaseJob
67+ isProduction : true
5968 inputs :
60- connectedservicename : ' Playwright-ESRP-Azure'
61- keyvaultname : ' pw-publishing-secrets'
62- authcertname : ' ESRP-Release-Auth'
63- signcertname : ' ESRP-Release-Sign'
64- clientid : ' 13434a40-7de4-4c23-81a3-d843dc81c2c5'
65- intent : ' PackageDistribution'
66- contenttype : ' Maven'
67- # Keeping it commented out as a workaround for:
68- # https://portal.microsofticm.com/imp/v3/incidents/incident/499972482/summary
69- # contentsource: 'folder'
70- folderlocation : ' ./local-build'
71- waitforreleasecompletion : true
72- 73- 74- serviceendpointurl : ' https://api.esrp.microsoft.com'
75- mainpublisher : ' Playwright'
76- domaintenantid : ' 72f988bf-86f1-41af-91ab-2d7cd011db47'
77- displayName : ' ESRP Release to Maven'
69+ - input : pipelineArtifact
70+ artifactName : esrp-build
71+ targetPath : $(Build.ArtifactStagingDirectory)/esrp-build
72+ steps :
73+ - checkout : none
74+ - task : EsrpRelease@7
75+ inputs :
76+ connectedservicename : ' Playwright-ESRP-Azure'
77+ keyvaultname : ' pw-publishing-secrets'
78+ authcertname : ' ESRP-Release-Auth'
79+ signcertname : ' ESRP-Release-Sign'
80+ clientid : ' 13434a40-7de4-4c23-81a3-d843dc81c2c5'
81+ intent : ' PackageDistribution'
82+ contenttype : ' Maven'
83+ # Keeping it commented out as a workaround for:
84+ # https://portal.microsofticm.com/imp/v3/incidents/incident/499972482/summary
85+ # contentsource: 'folder'
86+ folderlocation : ' $(Build.ArtifactStagingDirectory)/esrp-build'
87+ waitforreleasecompletion : true
88+ 89+ 90+ serviceendpointurl : ' https://api.esrp.microsoft.com'
91+ mainpublisher : ' Playwright'
92+ domaintenantid : ' 72f988bf-86f1-41af-91ab-2d7cd011db47'
93+ displayName : ' ESRP Release to Maven'
0 commit comments