File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ variables:
5555 RunTestsOnLinux : ${{ parameters.RunTestsOnLinux }}
5656 RunTestsOnMac : ${{ parameters.RunTestsOnMac }}
5757 RunMonoTestsOnMac : ${{ parameters.RunMonoTestsOnMac }}
58+ SourceBranch : $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
5859
5960extends :
6061 template : azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ stages:
142142 }
143143 catch {
144144 Write-Host $_
145- Write-Error "Failed to set SourceBranchName pipeline variable"
145+ Write-Error "Failed to set RunSettingsURI pipeline variable"
146146 throw
147147 }
148148 displayName: 'Set RunSettingsURI variable'
@@ -175,10 +175,10 @@ stages:
175175 filePath : $(DartLab.Path)\Scripts\VisualStudio\Bootstrapper\Get-BootstrapperURL.ps1
176176 arguments : -BootstrapperInfoJsonURI '$(Build.StagingDirectory)\MicroBuild\Output\BootstrapperInfo.json' -VSBranch '$(VSBranch)' -OutVariableName 'VisualStudio.InstallationUnderTest.BootstrapperURL'
177177 - task : artifactDropTask@0
178- displayName : " Upload VSTS Drop "
178+ displayName : " Upload VS Bootstrapper "
179179 inputs :
180180 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
181- buildNumber : ' Products/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName)/$(Build.BuildNumber )'
181+ buildNumber : ' $(MicroBuild.ManifestDropName )'
182182 sourcePath : " $(Pipeline.Workspace)\\ ComponentBuildUnderTest\\ VS15"
183183 toLowerCase : false
184184 usePat : true
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ resources:
4949 type : git
5050 name : 1ESPipelineTemplates/MicroBuildTemplate
5151 ref : refs/tags/release
52+
5253variables :
5354 BINLOG_DIRECTORY : $(Build.StagingDirectory)/binlog
5455 DOTNET_NOLOGO : 1
@@ -63,6 +64,8 @@ variables:
6364 RunTestsOnMac : ${{ parameters.RunTestsOnMac }}
6465 RunMonoTestsOnMac : ${{ parameters.RunMonoTestsOnMac }}
6566 RunStaticAnalysis : ${{ parameters.RunStaticAnalysis }}
67+ SourceBranch : $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
68+
6669extends :
6770 template : azure-pipelines/MicroBuild.1ES.Unofficial.yml@MicroBuildTemplate
6871 parameters :
Original file line number Diff line number Diff line change 1414- task : PowerShell@1
1515 inputs :
1616 scriptName : " $(Build.Repository.LocalPath)\\ scripts\\ cibuild\\ ConfigureVstsBuild.ps1"
17- arguments : " -BuildRTM $(BuildRTM) -RepositoryPath $(Build.Repository.LocalPath) -BranchName $(Build.SourceBranchName ) -CommitHash $(Build.SourceVersion) -BuildNumber $(Build.BuildNumber)"
17+ arguments : " -BuildRTM $(BuildRTM) -RepositoryPath $(Build.Repository.LocalPath) -BranchName $(SourceBranch ) -CommitHash $(Build.SourceVersion) -BuildNumber $(Build.BuildNumber)"
1818 displayName : " Configure VSTS CI Environment"
1919
2020- task : PowerShell@1
@@ -331,7 +331,7 @@ steps:
331331 displayName : ' Generate .runsettings files'
332332 inputs :
333333 solution : ' build\runsettings.proj'
334- msbuildArguments : ' /restore:false /property:OutputPath="$(Build.Repository.LocalPath)\artifacts\RunSettings" /property:TestDrop="RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildId)" /property:ProfilingInputsDrop="ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildId)" /binarylogger:$(Build.StagingDirectory)\\binlog\\17.GenerateRunSettings.binlog'
334+ msbuildArguments : ' /restore:false /property:OutputPath="$(Build.Repository.LocalPath)\artifacts\RunSettings" /property:TestDrop="RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildId)" /property:ProfilingInputsDrop="ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildId)" /binarylogger:$(Build.StagingDirectory)\\binlog\\17.GenerateRunSettings.binlog'
335335 condition : " and(succeeded(), eq(variables['BuildRTM'], 'false'))"
336336
337337- task : PowerShell@1
@@ -387,7 +387,7 @@ steps:
387387 azureSubscription : " Darc: Maestro Production"
388388 scriptType : ps
389389 scriptLocation : inlineScript
390- inlineScript : dotnet msbuild $(Build.Repository.LocalPath)\build\publish.proj /t:PublishToBuildAssetRegistry /property:NuGetClientNupkgsDirectoryPath=$(Build.Repository.LocalPath)\artifacts\$(NupkgOutputDir) /property:BUILD_BUILDNUMBER=$(Build.BuildNumber) /property:BUILD_SOURCEBRANCH=$(Build.SourceBranchName ) /property:BUILD_SOURCEVERSION=$(Build.SourceVersion) /property:BUILD_REPOSITORY_URI=$(Build.Repository.Uri) /property:BUILD_REPOSITORY_NAME=$(Build.Repository.Name) /property:ArtifactsLogDir=$(Build.Repository.LocalPath)\artifacts\manifests\ /property:MaestroApiEndpoint=$(MaestroApiEndpoint) /binarylogger:$(Build.StagingDirectory)\binlog\21.PublishToBuildAssetRegistry.binlog
390+ inlineScript : dotnet msbuild $(Build.Repository.LocalPath)\build\publish.proj /t:PublishToBuildAssetRegistry /property:NuGetClientNupkgsDirectoryPath=$(Build.Repository.LocalPath)\artifacts\$(NupkgOutputDir) /property:BUILD_BUILDNUMBER=$(Build.BuildNumber) /property:BUILD_SOURCEBRANCH=$(SourceBranch ) /property:BUILD_SOURCEVERSION=$(Build.SourceVersion) /property:BUILD_REPOSITORY_URI=$(Build.Repository.Uri) /property:BUILD_REPOSITORY_NAME=$(Build.Repository.Name) /property:ArtifactsLogDir=$(Build.Repository.LocalPath)\artifacts\manifests\ /property:MaestroApiEndpoint=$(MaestroApiEndpoint) /binarylogger:$(Build.StagingDirectory)\binlog\21.PublishToBuildAssetRegistry.binlog
391391 workingDirectory : cli
392392 failOnStderr : true
393393 env :
Original file line number Diff line number Diff line change @@ -29,13 +29,5 @@ steps:
2929 exit 1
3030 }
3131
32- - task : PowerShell@1
33- displayName : " Add Build Tags"
34- inputs :
35- scriptType : " inlineScript"
36- inlineScript : |
37- Write-Host "##vso[build.addbuildtag]${env:BUILD_SOURCEVERSIONAUTHOR}"
38- Write-Host "##vso[build.addbuildtag]${env:BUILD_SOURCEBRANCHNAME}"
39-
4032 - task : ComponentGovernanceComponentDetection@0
4133 displayName : ' Component Detection'
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ stages:
160160 displayName : ' Publish the .runsettings files to artifact services'
161161 condition : " succeeded()"
162162 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
163- buildNumber : ' RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildId)'
163+ buildNumber : ' RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildId)'
164164 sourcePath : ' artifacts\RunSettings'
165165 toLowerCase : false
166166 usePat : true
@@ -170,7 +170,7 @@ stages:
170170 displayName : ' OptProfV2: publish profiling inputs to artifact services'
171171 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
172172 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
173- buildNumber : ' ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildId)'
173+ buildNumber : ' ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildId)'
174174 sourcePath : ' $(Build.ArtifactStagingDirectory)\OptProf\ProfilingInputs'
175175 toLowerCase : false
176176 usePat : true
@@ -200,7 +200,7 @@ stages:
200200 displayName : ' Upload VSTS Drop'
201201 condition : " succeeded()"
202202 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
203- buildNumber : ' Products/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildNumber)'
203+ buildNumber : ' Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildNumber)'
204204 sourcePath : " $(Build.Repository.LocalPath)\\ artifacts\\ VS15"
205205 toLowerCase : false
206206 usePat : true
You can’t perform that action at this time.
0 commit comments