-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies from https://github.com/dotnet/arcade build 20190…
…725.2 (#702) - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19375.2 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19375.2
- Loading branch information
1 parent
ad176dc
commit 6af2114
Showing
11 changed files
with
73 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
param( | ||
[Parameter(Mandatory=$true)][string] $BarBuildId, # ID of the build which assets should be downloaded | ||
[Parameter(Mandatory=$true)][string] $MaestroAccessToken, # Token used to access Maestro API | ||
[Parameter(Mandatory=$true)][string] $DropLocation # Where the assets should be downloaded to | ||
) | ||
|
||
$ErrorActionPreference = "Stop" | ||
Set-StrictMode -Version 2.0 | ||
|
||
. $PSScriptRoot\..\tools.ps1 | ||
|
||
try { | ||
Write-Host "Installing DARC ..." | ||
|
||
. $PSScriptRoot\..\darc-init.ps1 | ||
$exitCode = $LASTEXITCODE | ||
|
||
if ($exitCode -ne 0) { | ||
Write-PipelineTaskError "Something failed while running 'darc-init.ps1'. Check for errors above. Exiting now..." | ||
ExitWithExitCode $exitCode | ||
} | ||
|
||
darc gather-drop --non-shipping ` | ||
--continue-on-error ` | ||
--id $BarBuildId ` | ||
--output-dir $DropLocation ` | ||
--bar-uri https://maestro-prod.westus2.cloudapp.azure.com/ ` | ||
--password $MaestroAccessToken ` | ||
--latest-location | ||
} | ||
catch { | ||
Write-Host $_ | ||
Write-Host $_.Exception | ||
Write-Host $_.ScriptStackTrace | ||
ExitWithExitCode 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
parameters: | ||
ChannelId: 0 | ||
|
||
jobs: | ||
- job: gatherDrop | ||
displayName: Gather Drop | ||
dependsOn: setupMaestroVars | ||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], ${{ parameters.ChannelId }}) | ||
variables: | ||
- group: Publish-Build-Assets | ||
- name: BARBuildId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] | ||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
- task: PowerShell@2 | ||
displayName: Darc gather-drop | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/darc-gather-drop.ps1 | ||
arguments: -BarBuildId $(BARBuildId) | ||
-DropLocation $(Agent.BuildDirectory)/Temp/Drop/ | ||
-MaestroAccessToken $(MaestroAccessToken) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters