@@ -3,13 +3,13 @@ name: $(Date:yyyyMMdd).$(Rev:r)
33parameters :
44- name : notifyUsers
55 type : string
6- default : ' '
6+ default : $(notifyUsers)
77- name : approversUsers
88 type : string
9- default : ' '
9+ default : $(approversUsers)
1010resources :
1111 pipelines :
12- - pipeline : ' _MSStoreCLI -BuildRelease'
12+ - pipeline : ' MSStoreCLI -BuildRelease'
1313 project : ' Pax'
1414 source : ' MSStoreCLI\MSStore CLI - Release'
1515 trigger :
@@ -52,89 +52,89 @@ extends:
5252 isProduction : true
5353 inputs :
5454 - input : pipelineArtifact
55- pipeline : ' _MSStoreCLI -BuildRelease'
55+ pipeline : ' MSStoreCLI -BuildRelease'
5656 artifactName : ' CLI-linux-x64'
5757 targetPath : ' $(Pipeline.Workspace)/CLI-linux-x64'
5858 - input : pipelineArtifact
59- pipeline : ' _MSStoreCLI -BuildRelease'
59+ pipeline : ' MSStoreCLI -BuildRelease'
6060 artifactName : ' CLI-linux-arm64'
6161 targetPath : ' $(Pipeline.Workspace)/CLI-linux-arm64'
6262 - input : pipelineArtifact
63- pipeline : ' _MSStoreCLI -BuildRelease'
63+ pipeline : ' MSStoreCLI -BuildRelease'
6464 artifactName : ' MSIX-arm64'
6565 targetPath : ' $(Pipeline.Workspace)/MSIX-arm64'
6666 - input : pipelineArtifact
67- pipeline : ' _MSStoreCLI -BuildRelease'
67+ pipeline : ' MSStoreCLI -BuildRelease'
6868 artifactName : ' MSIX-x64'
6969 targetPath : ' $(Pipeline.Workspace)/MSIX-x64'
7070 - input : pipelineArtifact
71- pipeline : ' _MSStoreCLI -BuildRelease'
71+ pipeline : ' MSStoreCLI -BuildRelease'
7272 artifactName : ' CLI-win-arm64'
7373 targetPath : ' $(Pipeline.Workspace)/CLI-win-arm64'
7474 - input : pipelineArtifact
75- pipeline : ' _MSStoreCLI -BuildRelease'
75+ pipeline : ' MSStoreCLI -BuildRelease'
7676 artifactName : ' CLI-win-x64'
7777 targetPath : ' $(Pipeline.Workspace)/CLI-win-x64'
7878 - input : pipelineArtifact
79- pipeline : ' _MSStoreCLI -BuildRelease'
79+ pipeline : ' MSStoreCLI -BuildRelease'
8080 artifactName : ' CLI-osx-x64'
8181 targetPath : ' $(Pipeline.Workspace)/CLI-osx-x64'
8282 - input : pipelineArtifact
83- pipeline : ' _MSStoreCLI -BuildRelease'
83+ pipeline : ' MSStoreCLI -BuildRelease'
8484 artifactName : ' CLI-osx-arm64'
8585 targetPath : ' $(Pipeline.Workspace)/CLI-osx-arm64'
8686 steps :
8787 - task : ArchiveFiles@2
8888 displayName : Archive Windows x64
8989 inputs :
90- rootFolderOrFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /CLI-win-x64
90+ rootFolderOrFile : $(Pipeline.Workspace) /CLI-win-x64
9191 includeRootFolder : false
92- archiveFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /MSStoreCLI-win-x64.zip
92+ archiveFile : $(Pipeline.Workspace) /MSStoreCLI-win-x64.zip
9393 - task : ArchiveFiles@2
9494 displayName : Archive Windows arm64
9595 inputs :
96- rootFolderOrFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /CLI-win-arm64
96+ rootFolderOrFile : $(Pipeline.Workspace) /CLI-win-arm64
9797 includeRootFolder : false
98- archiveFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /MSStoreCLI-win-arm64.zip
98+ archiveFile : $(Pipeline.Workspace) /MSStoreCLI-win-arm64.zip
9999 - task : ArchiveFiles@2
100100 displayName : Archive Linux x64
101101 inputs :
102- rootFolderOrFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /CLI-linux-x64
102+ rootFolderOrFile : $(Pipeline.Workspace) /CLI-linux-x64
103103 includeRootFolder : false
104104 archiveType : tar
105- archiveFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /MSStoreCLI-linux-x64.tar.gz
105+ archiveFile : $(Pipeline.Workspace) /MSStoreCLI-linux-x64.tar.gz
106106 - task : ArchiveFiles@2
107107 displayName : Archive Linux arm64
108108 inputs :
109- rootFolderOrFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /CLI-linux-arm64
109+ rootFolderOrFile : $(Pipeline.Workspace) /CLI-linux-arm64
110110 includeRootFolder : false
111111 archiveType : tar
112- archiveFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /MSStoreCLI-linux-arm64.tar.gz
112+ archiveFile : $(Pipeline.Workspace) /MSStoreCLI-linux-arm64.tar.gz
113113 - task : ArchiveFiles@2
114114 displayName : Archive MacOS x64
115115 inputs :
116- rootFolderOrFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /CLI-osx-x64
116+ rootFolderOrFile : $(Pipeline.Workspace) /CLI-osx-x64
117117 includeRootFolder : false
118118 archiveType : tar
119- archiveFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /MSStoreCLI-osx-x64.tar.gz
119+ archiveFile : $(Pipeline.Workspace) /MSStoreCLI-osx-x64.tar.gz
120120 - task : ArchiveFiles@2
121121 displayName : Archive MacOS arm64
122122 inputs :
123- rootFolderOrFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /CLI-osx-arm64
123+ rootFolderOrFile : $(Pipeline.Workspace) /CLI-osx-arm64
124124 includeRootFolder : false
125125 archiveType : tar
126- archiveFile : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /MSStoreCLI-osx-arm64.tar.gz
126+ archiveFile : $(Pipeline.Workspace) /MSStoreCLI-osx-arm64.tar.gz
127127 - task : PowerShell@2
128128 displayName : Create Hashfiles
129129 inputs :
130130 targetType : inline
131131 script : |-
132- foreach($file in Get-FileHash -Path "$(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /*.tar.gz" -Algorithm SHA256) {
132+ foreach($file in Get-FileHash -Path "$(Pipeline.Workspace) /*.tar.gz" -Algorithm SHA256) {
133133 $content = $file.Hash.ToLower() + " " + [System.IO.Path]::GetFileName($file.Path)
134134 $path = $file.Path + ".sha256.txt"
135135 $content | Out-File $path
136136 }
137- foreach($file in Get-FileHash -Path "$(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /*.zip" -Algorithm SHA256) {
137+ foreach($file in Get-FileHash -Path "$(Pipeline.Workspace) /*.zip" -Algorithm SHA256) {
138138 $content = $file.Hash.ToLower() + " " + [System.IO.Path]::GetFileName($file.Path)
139139 $path = $file.Path + ".sha256.txt"
140140 $content | Out-File $path
@@ -149,9 +149,9 @@ extends:
149149 title : Microsoft Store CLI $(Build.SourceBranchName)
150150 releaseNotesSource : inline
151151 assets : |-
152- $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /**/*.tar.gz
153- $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /**/*.zip
154- $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /**/*.sha256.txt
152+ $(Pipeline.Workspace) /**/*.tar.gz
153+ $(Pipeline.Workspace) /**/*.zip
154+ $(Pipeline.Workspace) /**/*.sha256.txt
155155 isDraft : true
156156 isPreRelease : true
157157 changeLogCompareToRelease : lastNonDraftRelease
@@ -160,7 +160,7 @@ extends:
160160 inputs :
161161 serviceEndpoint : MSStoreCLI - StoreBroker
162162 appId : 9P53PC5S0PHJ
163- sourceFolder : $(System.DefaultWorkingDirectory)/_MSStore CLI - Build Release /
163+ sourceFolder : $(Pipeline.Workspace) /
164164 contents : |-
165165 MSIX-x64/*_x64.msix
166166 MSIX-arm64/*_arm64.msix
@@ -175,7 +175,7 @@ extends:
175175 dependsOn : GitHub_Release_And_MSStore
176176 variables :
177177 - name : GitHubPAT
178- value :
178+ value : $(GitHubPAT)
179179 jobs :
180180 - job : PreDeploymentApprovalJob
181181 displayName : Pre-Deployment Approval
@@ -196,7 +196,7 @@ extends:
196196 - task : CmdLine@2
197197 displayName : Checkout HomeBrew Repo
198198 inputs :
199- script : git clone https://oauth2:$(GitHubPAT)@github.com/microsoft/homebrew-msstore-cli.git .
199+ script : git clone https://oauth2:$(GitHubPAT)@github.com/microsoft/homebrew-msstore-cli.git $(Pipeline.Workspace)\homebrew-msstore-cli
200200 - task : DownloadGitHubRelease@0
201201 displayName : Download GitHub Release
202202 inputs :
@@ -205,17 +205,21 @@ extends:
205205 defaultVersionType : specificTag
206206 version : $(Build.SourceBranchName)
207207 itemPattern : ' *.sha256.txt'
208+ downloadPath : $(Pipeline.Workspace)\homebrew-msstore-cli
208209 - task : PowerShell@2
209210 displayName : Update Ruby file
210211 inputs :
211- filePath : update-formula.ps1
212+ filePath : $(Pipeline.Workspace)\homebrew-msstore-cli\ update-formula.ps1
212213 arguments : $(Build.SourceBranchName)
214+ workingDirectory : $(Pipeline.Workspace)\homebrew-msstore-cli
213215 - task : CmdLine@2
214216 displayName : Git operations
215217 inputs :
218+ workingDirectory : $(Pipeline.Workspace)\homebrew-msstore-cli
216219 script : |-
217220 git config user.email "msstore.cli.dev.bot@microsoft.com"
218221 git config user.name "MSStore CLI Dev Bot"
219222 git add -f Formula\msstore-cli.rb
223+ git checkout -B $(Build.SourceBranchName)
220224 git commit -m "Update formula with new release ($(Build.SourceBranchName))."
221- git push origin main
225+ git push origin $(Build.SourceBranchName)
0 commit comments