File tree Expand file tree Collapse file tree 20 files changed +291
-50
lines changed Expand file tree Collapse file tree 20 files changed +291
-50
lines changed Original file line number Diff line number Diff line change 24
24
<!-- End: Package sources from dotnet-runtime -->
25
25
<!-- Begin: Package sources from dotnet-templating -->
26
26
<add key =" darc-pub-dotnet-templating-7248c3c" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-7248c3c1/nuget/v3/index.json" />
27
+ <add key =" darc-pub-dotnet-templating-7248c3c-5" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-7248c3c1-5/nuget/v3/index.json" />
28
+ <add key =" darc-pub-dotnet-templating-7248c3c-3" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-7248c3c1-3/nuget/v3/index.json" />
29
+ <add key =" darc-pub-dotnet-templating-7248c3c-2" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-7248c3c1-2/nuget/v3/index.json" />
30
+ <add key =" darc-pub-dotnet-templating-7248c3c-1" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-7248c3c1-1/nuget/v3/index.json" />
27
31
<!-- End: Package sources from dotnet-templating -->
28
32
<!-- Begin: Package sources from dotnet-windowsdesktop -->
29
33
<!-- End: Package sources from dotnet-windowsdesktop -->
Original file line number Diff line number Diff line change 483
483
</Dependency >
484
484
</ProductDependencies >
485
485
<ToolsetDependencies >
486
- <Dependency Name =" Microsoft.DotNet.Arcade.Sdk" Version =" 8.0.0-beta.24311.3 " >
486
+ <Dependency Name =" Microsoft.DotNet.Arcade.Sdk" Version =" 8.0.0-beta.24352.1 " >
487
487
<Uri >https://github.com/dotnet/arcade</Uri >
488
- <Sha >c214b6ad17aedca4fa48294d80f6c52ef2463081 </Sha >
488
+ <Sha >8b879da4e449c48d99f3f642fc429379a64e8fe8 </Sha >
489
489
<SourceBuild RepoName =" arcade" ManagedOnly =" true" />
490
490
</Dependency >
491
- <Dependency Name =" Microsoft.DotNet.Helix.Sdk" Version =" 8.0.0-beta.24311.3 " >
491
+ <Dependency Name =" Microsoft.DotNet.Helix.Sdk" Version =" 8.0.0-beta.24352.1 " >
492
492
<Uri >https://github.com/dotnet/arcade</Uri >
493
- <Sha >c214b6ad17aedca4fa48294d80f6c52ef2463081 </Sha >
493
+ <Sha >8b879da4e449c48d99f3f642fc429379a64e8fe8 </Sha >
494
494
</Dependency >
495
- <Dependency Name =" Microsoft.DotNet.SignTool" Version =" 8.0.0-beta.24311.3 " >
495
+ <Dependency Name =" Microsoft.DotNet.SignTool" Version =" 8.0.0-beta.24352.1 " >
496
496
<Uri >https://github.com/dotnet/arcade</Uri >
497
- <Sha >c214b6ad17aedca4fa48294d80f6c52ef2463081 </Sha >
497
+ <Sha >8b879da4e449c48d99f3f642fc429379a64e8fe8 </Sha >
498
498
</Dependency >
499
- <Dependency Name =" Microsoft.DotNet.XUnitExtensions" Version =" 8.0.0-beta.24311.3 " >
499
+ <Dependency Name =" Microsoft.DotNet.XUnitExtensions" Version =" 8.0.0-beta.24352.1 " >
500
500
<Uri >https://github.com/dotnet/arcade</Uri >
501
- <Sha >c214b6ad17aedca4fa48294d80f6c52ef2463081 </Sha >
501
+ <Sha >8b879da4e449c48d99f3f642fc429379a64e8fe8 </Sha >
502
502
</Dependency >
503
503
<Dependency Name =" System.Reflection.MetadataLoadContext" Version =" 8.0.0" >
504
504
<Uri >https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri >
Original file line number Diff line number Diff line change 35
35
<SystemCollectionsImmutablePackageVersion >7.0.0</SystemCollectionsImmutablePackageVersion >
36
36
<SystemDiagnosticsFileVersionInfoVersion >4.0.0</SystemDiagnosticsFileVersionInfoVersion >
37
37
<SystemReflectionMetadataVersion >7.0.0</SystemReflectionMetadataVersion >
38
- <MicrosoftDotNetSignToolVersion >8.0.0-beta.24311.3 </MicrosoftDotNetSignToolVersion >
38
+ <MicrosoftDotNetSignToolVersion >8.0.0-beta.24352.1 </MicrosoftDotNetSignToolVersion >
39
39
<MicrosoftWebXdtPackageVersion >7.0.0-preview.22423.2</MicrosoftWebXdtPackageVersion >
40
40
<SystemSecurityCryptographyProtectedDataPackageVersion >8.0.0</SystemSecurityCryptographyProtectedDataPackageVersion >
41
41
<SystemCollectionsSpecializedPackageVersion >4.3.0</SystemCollectionsSpecializedPackageVersion >
210
210
<PropertyGroup >
211
211
<FluentAssertionsVersion >6.12.0</FluentAssertionsVersion >
212
212
<FluentAssertionsJsonVersion >6.1.0</FluentAssertionsJsonVersion >
213
- <MicrosoftDotNetXUnitExtensionsVersion >8.0.0-beta.24311.3 </MicrosoftDotNetXUnitExtensionsVersion >
213
+ <MicrosoftDotNetXUnitExtensionsVersion >8.0.0-beta.24352.1 </MicrosoftDotNetXUnitExtensionsVersion >
214
214
<MoqPackageVersion >4.18.4</MoqPackageVersion >
215
215
<XunitCombinatorialVersion >1.3.2</XunitCombinatorialVersion >
216
216
<MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion >8.0.0-beta.23607.1</MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion >
Original file line number Diff line number Diff line change 2
2
[Parameter (Mandatory = $true )][int ] $BuildId ,
3
3
[Parameter (Mandatory = $true )][int ] $PublishingInfraVersion ,
4
4
[Parameter (Mandatory = $true )][string ] $AzdoToken ,
5
- [Parameter (Mandatory = $true )][string ] $MaestroToken ,
6
5
[Parameter (Mandatory = $false )][string ] $MaestroApiEndPoint = ' https://maestro.dot.net' ,
7
6
[Parameter (Mandatory = $true )][string ] $WaitPublishingFinish ,
8
7
[Parameter (Mandatory = $false )][string ] $ArtifactsPublishingAdditionalParameters ,
@@ -31,13 +30,13 @@ try {
31
30
}
32
31
33
32
& $darc add-build - to- channel `
34
- -- id $buildId `
35
- -- publishing- infra- version $PublishingInfraVersion `
36
- -- default- channels `
37
- -- source- branch main `
38
- -- azdev- pat $AzdoToken `
39
- -- bar- uri $MaestroApiEndPoint `
40
- -- password $MaestroToken `
33
+ -- id $buildId `
34
+ -- publishing- infra- version $PublishingInfraVersion `
35
+ -- default- channels `
36
+ -- source- branch main `
37
+ -- azdev- pat " $AzdoToken " `
38
+ -- bar- uri " $MaestroApiEndPoint " `
39
+ -- ci `
41
40
@optionalParams
42
41
43
42
if ($LastExitCode -ne 0 ) {
Original file line number Diff line number Diff line change @@ -76,13 +76,16 @@ jobs:
76
76
77
77
- task : NuGetAuthenticate@1
78
78
79
- - task : PowerShell @2
79
+ - task : AzureCLI @2
80
80
displayName : Publish Build Assets
81
81
inputs :
82
- filePath : eng\common\sdk-task.ps1
83
- arguments : -task PublishBuildAssets -restore -msbuildEngine dotnet
82
+ azureSubscription : " Darc: Maestro Production"
83
+ scriptType : ps
84
+ scriptLocation : scriptPath
85
+ scriptPath : $(Build.SourcesDirectory)/eng/common/sdk-task.ps1
86
+ arguments : >
87
+ -task PublishBuildAssets -restore -msbuildEngine dotnet
84
88
/p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
85
- /p:BuildAssetRegistryToken=$(MaestroAccessToken)
86
89
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
87
90
/p:PublishUsingPipelines=${{ parameters.publishUsingPipelines }}
88
91
/p:OfficialBuildId=$(Build.BuildNumber)
@@ -144,7 +147,6 @@ jobs:
144
147
arguments : -BuildId $(BARBuildId)
145
148
-PublishingInfraVersion 3
146
149
-AzdoToken '$(publishing-dnceng-devdiv-code-r-build-re)'
147
- -MaestroToken '$(MaestroApiAccessToken)'
148
150
-WaitPublishingFinish true
149
151
-ArtifactsPublishingAdditionalParameters '${{ parameters.artifactsPublishingAdditionalParameters }}'
150
152
-SymbolPublishingAdditionalParameters '${{ parameters.symbolPublishingAdditionalParameters }}'
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ parameters:
31
31
# container and pool.
32
32
platform : {}
33
33
34
+ # If set to true and running on a non-public project,
35
+ # Internal blob storage locations will be enabled.
36
+ # This is not enabled by default because many repositories do not need internal sources
37
+ # and do not need to have the required service connections approved in the pipeline.
38
+ enableInternalSources : false
39
+
34
40
jobs :
35
41
- job : ${{ parameters.jobNamePrefix }}_${{ parameters.platform.name }}
36
42
displayName : Source-Build (${{ parameters.platform.name }})
62
68
clean : all
63
69
64
70
steps :
71
+ - ${{ if eq(parameters.enableInternalSources, true) }} :
72
+ - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
65
73
- template : /eng/common/templates-official/steps/source-build.yml
66
74
parameters :
67
75
platform : ${{ parameters.platform }}
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ parameters:
21
21
# one job runs on 'defaultManagedPlatform'.
22
22
platforms : []
23
23
24
+ # If set to true and running on a non-public project,
25
+ # Internal nuget and blob storage locations will be enabled.
26
+ # This is not enabled by default because many repositories do not need internal sources
27
+ # and do not need to have the required service connections approved in the pipeline.
28
+ enableInternalSources : false
29
+
24
30
jobs :
25
31
26
32
- ${{ if ne(parameters.allCompletedJobId, '') }} :
38
44
parameters :
39
45
jobNamePrefix : ${{ parameters.jobNamePrefix }}
40
46
platform : ${{ platform }}
47
+ enableInternalSources : ${{ parameters.enableInternalSources }}
41
48
42
49
- ${{ if eq(length(parameters.platforms), 0) }} :
43
50
- template : /eng/common/templates-official/job/source-build.yml
44
51
parameters :
45
52
jobNamePrefix : ${{ parameters.jobNamePrefix }}
46
53
platform : ${{ parameters.defaultManagedPlatform }}
54
+ enableInternalSources : ${{ parameters.enableInternalSources }}
Original file line number Diff line number Diff line change @@ -272,14 +272,16 @@ stages:
272
272
273
273
- task : NuGetAuthenticate@1
274
274
275
- - task : PowerShell @2
275
+ - task : AzureCLI @2
276
276
displayName : Publish Using Darc
277
277
inputs :
278
- filePath : $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1
278
+ azureSubscription : " Darc: Maestro Production"
279
+ scriptType : ps
280
+ scriptLocation : scriptPath
281
+ scriptPath : $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1
279
282
arguments : -BuildId $(BARBuildId)
280
283
-PublishingInfraVersion ${{ parameters.publishingInfraVersion }}
281
284
-AzdoToken '$(publishing-dnceng-devdiv-code-r-build-re)'
282
- -MaestroToken '$(MaestroApiAccessToken)'
283
285
-WaitPublishingFinish true
284
286
-ArtifactsPublishingAdditionalParameters '${{ parameters.artifactsPublishingAdditionalParameters }}'
285
287
-SymbolPublishingAdditionalParameters '${{ parameters.symbolPublishingAdditionalParameters }}'
Original file line number Diff line number Diff line change
1
+ # Obtains internal runtime download credentials and populates the 'dotnetbuilds-internal-container-read-token-base64'
2
+ # variable with the base64-encoded SAS token, by default
3
+
4
+ parameters :
5
+ - name : federatedServiceConnection
6
+ type : string
7
+ default : ' dotnetbuilds-internal-read'
8
+ - name : outputVariableName
9
+ type : string
10
+ default : ' dotnetbuilds-internal-container-read-token-base64'
11
+ - name : expiryInHours
12
+ type : number
13
+ default : 1
14
+ - name : base64Encode
15
+ type : boolean
16
+ default : true
17
+
18
+ steps :
19
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
20
+ - template : /eng/common/templates-official/steps/get-delegation-sas.yml
21
+ parameters :
22
+ federatedServiceConnection : ${{ parameters.federatedServiceConnection }}
23
+ outputVariableName : ${{ parameters.outputVariableName }}
24
+ expiryInHours : ${{ parameters.expiryInHours }}
25
+ base64Encode : ${{ parameters.base64Encode }}
26
+ storageAccount : dotnetbuilds
27
+ container : internal
28
+ permissions : rl
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ - name : federatedServiceConnection
3
+ type : string
4
+ - name : outputVariableName
5
+ type : string
6
+ - name : expiryInHours
7
+ type : number
8
+ default : 1
9
+ - name : base64Encode
10
+ type : boolean
11
+ default : false
12
+ - name : storageAccount
13
+ type : string
14
+ - name : container
15
+ type : string
16
+ - name : permissions
17
+ type : string
18
+ default : ' rl'
19
+
20
+ steps :
21
+ - task : AzureCLI@2
22
+ displayName : ' Generate delegation SAS Token for ${{ parameters.storageAccount }}/${{ parameters.container }}'
23
+ inputs :
24
+ azureSubscription : ${{ parameters.federatedServiceConnection }}
25
+ scriptType : ' pscore'
26
+ scriptLocation : ' inlineScript'
27
+ inlineScript : |
28
+ # Calculate the expiration of the SAS token and convert to UTC
29
+ $expiry = (Get-Date).AddHours(${{ parameters.expiryInHours }}).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
30
+
31
+ $sas = az storage container generate-sas --account-name ${{ parameters.storageAccount }} --name ${{ parameters.container }} --permissions ${{ parameters.permissions }} --expiry $expiry --auth-mode login --as-user -o tsv
32
+
33
+ if ($LASTEXITCODE -ne 0) {
34
+ Write-Error "Failed to generate SAS token."
35
+ exit 1
36
+ }
37
+
38
+ if ('${{ parameters.base64Encode }}' -eq 'true') {
39
+ $sas = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($sas))
40
+ }
41
+
42
+ Write-Host "Setting '${{ parameters.outputVariableName }}' with the access token value"
43
+ Write-Host "##vso[task.setvariable variable=${{ parameters.outputVariableName }};issecret=true]$sas"
You can’t perform that action at this time.
0 commit comments