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 @@ -138,7 +138,7 @@ stages:
138138 }
139139 catch {
140140 Write-Host $_
141- Write-Error "Failed to set SourceBranchName pipeline variable"
141+ Write-Error "Failed to set RunSettingsURI pipeline variable"
142142 throw
143143 }
144144 displayName: 'Set RunSettingsURI variable'
@@ -171,10 +171,10 @@ stages:
171171 filePath : $(DartLab.Path)\Scripts\VisualStudio\Bootstrapper\Get-BootstrapperURL.ps1
172172 arguments : -BootstrapperInfoJsonURI '$(Build.StagingDirectory)\MicroBuild\Output\BootstrapperInfo.json' -VSBranch '$(VSBranch)' -OutVariableName 'VisualStudio.InstallationUnderTest.BootstrapperURL'
173173 - task : artifactDropTask@0
174- displayName : " Upload VSTS Drop "
174+ displayName : " Upload VS Bootstrapper "
175175 inputs :
176176 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
177- buildNumber : ' Products/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName)/$(Build.BuildNumber )'
177+ buildNumber : ' $(MicroBuild.ManifestDropName )'
178178 sourcePath : " $(Pipeline.Workspace)\\ ComponentBuildUnderTest\\ VS15"
179179 toLowerCase : false
180180 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
@@ -385,7 +385,7 @@ steps:
385385 azureSubscription : " Darc: Maestro Production"
386386 scriptType : ps
387387 scriptLocation : inlineScript
388- 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
388+ 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
389389 workingDirectory : cli
390390 failOnStderr : true
391391 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 @@ -161,7 +161,7 @@ stages:
161161 displayName : ' Publish the .runsettings files to artifact services'
162162 condition : " succeeded()"
163163 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
164- buildNumber : ' RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildId)'
164+ buildNumber : ' RunSettings/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildId)'
165165 sourcePath : ' artifacts\RunSettings'
166166 toLowerCase : false
167167 usePat : true
@@ -171,7 +171,7 @@ stages:
171171 displayName : ' OptProfV2: publish profiling inputs to artifact services'
172172 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
173173 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
174- buildNumber : ' ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildId)'
174+ buildNumber : ' ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildId)'
175175 sourcePath : ' $(Build.ArtifactStagingDirectory)\OptProf\ProfilingInputs'
176176 toLowerCase : false
177177 usePat : true
@@ -201,7 +201,7 @@ stages:
201201 displayName : ' Upload VSTS Drop'
202202 condition : " succeeded()"
203203 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
204- buildNumber : ' Products/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName )/$(Build.BuildNumber)'
204+ buildNumber : ' Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranch )/$(Build.BuildNumber)'
205205 sourcePath : " $(Build.Repository.LocalPath)\\ artifacts\\ VS15"
206206 toLowerCase : false
207207 usePat : true
You can’t perform that action at this time.
0 commit comments