[master] Update dependencies from dotnet/arcade (#4066)
* Update dependencies from https://github.com/dotnet/arcade build 20190815.27 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19415.27 * Update dependencies from https://github.com/dotnet/arcade build 20190816.16 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19416.16
This commit is contained in:
parent
74f6c4374a
commit
05a638efb8
16 changed files with 129 additions and 100 deletions
|
@ -65,9 +65,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19412.7">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19416.16">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>82c822ee7db08f5347e6ac44e3ed465248394a9e</Sha>
|
<Sha>0e36c2410b72166a1b9a67142e652225e22feada</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -2,7 +2,7 @@ Param(
|
||||||
[string] $SourceDirectory=$env:BUILD_SOURCESDIRECTORY,
|
[string] $SourceDirectory=$env:BUILD_SOURCESDIRECTORY,
|
||||||
[string] $CoreRootDirectory,
|
[string] $CoreRootDirectory,
|
||||||
[string] $Architecture="x64",
|
[string] $Architecture="x64",
|
||||||
[string] $Framework="netcoreapp3.0",
|
[string] $Framework="netcoreapp5.0",
|
||||||
[string] $CompilationMode="Tiered",
|
[string] $CompilationMode="Tiered",
|
||||||
[string] $Repository=$env:BUILD_REPOSITORY_NAME,
|
[string] $Repository=$env:BUILD_REPOSITORY_NAME,
|
||||||
[string] $Branch=$env:BUILD_SOURCEBRANCH,
|
[string] $Branch=$env:BUILD_SOURCEBRANCH,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
source_directory=$BUILD_SOURCESDIRECTORY
|
source_directory=$BUILD_SOURCESDIRECTORY
|
||||||
core_root_directory=
|
core_root_directory=
|
||||||
architecture=x64
|
architecture=x64
|
||||||
framework=netcoreapp3.0
|
framework=netcoreapp5.0
|
||||||
compilation_mode=tiered
|
compilation_mode=tiered
|
||||||
repository=$BUILD_REPOSITORY_NAME
|
repository=$BUILD_REPOSITORY_NAME
|
||||||
branch=$BUILD_SOURCEBRANCH
|
branch=$BUILD_SOURCEBRANCH
|
||||||
|
@ -156,6 +156,11 @@ if [[ "$use_core_run" = true ]]; then
|
||||||
mv $core_root_directory $new_core_root
|
mv $core_root_directory $new_core_root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ci=true
|
||||||
|
|
||||||
|
_script_dir=$(pwd)/eng/common
|
||||||
|
. "$_script_dir/pipeline-logging-functions.sh"
|
||||||
|
|
||||||
# Make sure all of our variables are available for future steps
|
# Make sure all of our variables are available for future steps
|
||||||
Write-PipelineSetVariable -name "UseCoreRun" -value "$use_core_run" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "UseCoreRun" -value "$use_core_run" -is_multi_job_variable false
|
||||||
Write-PipelineSetVariable -name "Architecture" -value "$architecture" -is_multi_job_variable false
|
Write-PipelineSetVariable -name "Architecture" -value "$architecture" -is_multi_job_variable false
|
||||||
|
|
|
@ -19,7 +19,17 @@ try {
|
||||||
ExitWithExitCode $exitCode
|
ExitWithExitCode $exitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# For now, only use a dry run.
|
||||||
|
# Ideally we would change darc to enable a quick request that
|
||||||
|
# would check whether the file exists that you can download it,
|
||||||
|
# and that it won't conflict with other files.
|
||||||
|
# https://github.com/dotnet/arcade/issues/3674
|
||||||
|
# Right now we can't remove continue-on-error because we ocassionally will have
|
||||||
|
# dependencies that have no associated builds (e.g. an old dependency).
|
||||||
|
# We need to add an option to baseline specific dependencies away, or add them manually
|
||||||
|
# to the BAR.
|
||||||
darc gather-drop --non-shipping `
|
darc gather-drop --non-shipping `
|
||||||
|
--dry-run `
|
||||||
--continue-on-error `
|
--continue-on-error `
|
||||||
--id $BarBuildId `
|
--id $BarBuildId `
|
||||||
--output-dir $DropLocation `
|
--output-dir $DropLocation `
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
param (
|
|
||||||
$dotnetsymbolVersion = $null
|
|
||||||
)
|
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop"
|
|
||||||
Set-StrictMode -Version 2.0
|
|
||||||
|
|
||||||
. $PSScriptRoot\..\tools.ps1
|
|
||||||
|
|
||||||
$verbosity = "minimal"
|
|
||||||
|
|
||||||
function Installdotnetsymbol ($dotnetsymbolVersion) {
|
|
||||||
$dotnetsymbolPackageName = "dotnet-symbol"
|
|
||||||
|
|
||||||
$dotnetRoot = InitializeDotNetCli -install:$true
|
|
||||||
$dotnet = "$dotnetRoot\dotnet.exe"
|
|
||||||
$toolList = & "$dotnet" tool list --global
|
|
||||||
|
|
||||||
if (($toolList -like "*$dotnetsymbolPackageName*") -and ($toolList -like "*$dotnetsymbolVersion*")) {
|
|
||||||
Write-Host "dotnet-symbol version $dotnetsymbolVersion is already installed."
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Host "Installing dotnet-symbol version $dotnetsymbolVersion..."
|
|
||||||
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
|
|
||||||
& "$dotnet" tool install $dotnetsymbolPackageName --version $dotnetsymbolVersion --verbosity $verbosity --global
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Installdotnetsymbol $dotnetsymbolVersion
|
|
|
@ -1,29 +0,0 @@
|
||||||
param (
|
|
||||||
$sourcelinkCliVersion = $null
|
|
||||||
)
|
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop"
|
|
||||||
Set-StrictMode -Version 2.0
|
|
||||||
|
|
||||||
. $PSScriptRoot\..\tools.ps1
|
|
||||||
|
|
||||||
$verbosity = "minimal"
|
|
||||||
|
|
||||||
function InstallSourcelinkCli ($sourcelinkCliVersion) {
|
|
||||||
$sourcelinkCliPackageName = "sourcelink"
|
|
||||||
|
|
||||||
$dotnetRoot = InitializeDotNetCli -install:$true
|
|
||||||
$dotnet = "$dotnetRoot\dotnet.exe"
|
|
||||||
$toolList = & "$dotnet" tool list --global
|
|
||||||
|
|
||||||
if (($toolList -like "*$sourcelinkCliPackageName*") -and ($toolList -like "*$sourcelinkCliVersion*")) {
|
|
||||||
Write-Host "SourceLink CLI version $sourcelinkCliVersion is already installed."
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Host "Installing SourceLink CLI version $sourcelinkCliVersion..."
|
|
||||||
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
|
|
||||||
& "$dotnet" tool install $sourcelinkCliPackageName --version $sourcelinkCliVersion --verbosity $verbosity --global
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
InstallSourcelinkCli $sourcelinkCliVersion
|
|
|
@ -86,8 +86,8 @@ if ($TsaPublish) {
|
||||||
if (-not $TsaRepositoryName) {
|
if (-not $TsaRepositoryName) {
|
||||||
$TsaRepositoryName = "$($Repository)-$($BranchName)"
|
$TsaRepositoryName = "$($Repository)-$($BranchName)"
|
||||||
}
|
}
|
||||||
Write-Host "$guardianCliLocation tsa-publish --all-tools --repository-name `"$TsaRepositoryName`" --branch-name `"$TsaBranchName`" --build-number `"$BuildNumber`" --codebase-name `"$TsaCodebaseName`" --notification-alias `"$TsaNotificationEmail`" --codebase-admin `"$TsaCodebaseAdmin`" --instance-url `"$TsaInstanceUrl`" --project-name `"$TsaProjectName`" --area-path `"$TsaBugAreaPath`" --iteration-path `"$TsaIterationPath`" --working-directory $SourceDirectory --logger-level $GuardianLoggerLevel"
|
Write-Host "$guardianCliLocation tsa-publish --all-tools --repository-name `"$TsaRepositoryName`" --branch-name `"$TsaBranchName`" --build-number `"$BuildNumber`" --codebase-name `"$TsaCodebaseName`" --notification-alias `"$TsaNotificationEmail`" --codebase-admin `"$TsaCodebaseAdmin`" --instance-url `"$TsaInstanceUrl`" --project-name `"$TsaProjectName`" --area-path `"$TsaBugAreaPath`" --iteration-path `"$TsaIterationPath`" --working-directory $ArtifactsDirectory --logger-level $GuardianLoggerLevel"
|
||||||
& $guardianCliLocation tsa-publish --all-tools --repository-name "$TsaRepositoryName" --branch-name "$TsaBranchName" --build-number "$BuildNumber" --codebase-name "$TsaCodebaseName" --notification-alias "$TsaNotificationEmail" --codebase-admin "$TsaCodebaseAdmin" --instance-url "$TsaInstanceUrl" --project-name "$TsaProjectName" --area-path "$TsaBugAreaPath" --iteration-path "$TsaIterationPath" --working-directory $ArtifactsDirectory --logger-level $GuardianLoggerLevel
|
& $guardianCliLocation tsa-publish --all-tools --repository-name "$TsaRepositoryName" --branch-name "$TsaBranchName" --build-number "$BuildNumber" --onboard $True --codebase-name "$TsaCodebaseName" --notification-alias "$TsaNotificationEmail" --codebase-admin "$TsaCodebaseAdmin" --instance-url "$TsaInstanceUrl" --project-name "$TsaProjectName" --area-path "$TsaBugAreaPath" --iteration-path "$TsaIterationPath" --working-directory $ArtifactsDirectory --logger-level $GuardianLoggerLevel
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Host "Guardian tsa-publish failed with exit code $LASTEXITCODE."
|
Write-Host "Guardian tsa-publish failed with exit code $LASTEXITCODE."
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
|
|
|
@ -25,19 +25,19 @@ if ($ValidPath -eq $False)
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$configParam = @("--config")
|
||||||
|
|
||||||
foreach ($tool in $ToolsList) {
|
foreach ($tool in $ToolsList) {
|
||||||
$gdnConfigFile = Join-Path $gdnConfigPath "$tool-configure.gdnconfig"
|
$gdnConfigFile = Join-Path $gdnConfigPath "$tool-configure.gdnconfig"
|
||||||
$config = $False
|
|
||||||
Write-Host $tool
|
Write-Host $tool
|
||||||
# We have to manually configure tools that run on source to look at the source directory only
|
# We have to manually configure tools that run on source to look at the source directory only
|
||||||
if ($tool -eq "credscan") {
|
if ($tool -eq "credscan") {
|
||||||
Write-Host "$GuardianCliLocation configure --working-directory $WorkingDirectory --tool $tool --output-path $gdnConfigFile --logger-level $GuardianLoggerLevel --noninteractive --force --args `" TargetDirectory : $TargetDirectory `" $(If ($CrScanAdditionalRunConfigParams) {$CrScanAdditionalRunConfigParams})"
|
Write-Host "$GuardianCliLocation configure --working-directory $WorkingDirectory --tool $tool --output-path $gdnConfigFile --logger-level $GuardianLoggerLevel --noninteractive --force --args `" TargetDirectory : $TargetDirectory `" `" OutputType : pre `" $(If ($CrScanAdditionalRunConfigParams) {$CrScanAdditionalRunConfigParams})"
|
||||||
& $GuardianCliLocation configure --working-directory $WorkingDirectory --tool $tool --output-path $gdnConfigFile --logger-level $GuardianLoggerLevel --noninteractive --force --args " TargetDirectory : $TargetDirectory " $(If ($CrScanAdditionalRunConfigParams) {$CrScanAdditionalRunConfigParams})
|
& $GuardianCliLocation configure --working-directory $WorkingDirectory --tool $tool --output-path $gdnConfigFile --logger-level $GuardianLoggerLevel --noninteractive --force --args " TargetDirectory : $TargetDirectory " "OutputType : pre" $(If ($CrScanAdditionalRunConfigParams) {$CrScanAdditionalRunConfigParams})
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Host "Guardian configure for $tool failed with exit code $LASTEXITCODE."
|
Write-Host "Guardian configure for $tool failed with exit code $LASTEXITCODE."
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
}
|
}
|
||||||
$config = $True
|
|
||||||
}
|
}
|
||||||
if ($tool -eq "policheck") {
|
if ($tool -eq "policheck") {
|
||||||
Write-Host "$GuardianCliLocation configure --working-directory $WorkingDirectory --tool $tool --output-path $gdnConfigFile --logger-level $GuardianLoggerLevel --noninteractive --force --args `" Target : $TargetDirectory `" $(If ($PoliCheckAdditionalRunConfigParams) {$PoliCheckAdditionalRunConfigParams})"
|
Write-Host "$GuardianCliLocation configure --working-directory $WorkingDirectory --tool $tool --output-path $gdnConfigFile --logger-level $GuardianLoggerLevel --noninteractive --force --args `" Target : $TargetDirectory `" $(If ($PoliCheckAdditionalRunConfigParams) {$PoliCheckAdditionalRunConfigParams})"
|
||||||
|
@ -46,22 +46,14 @@ foreach ($tool in $ToolsList) {
|
||||||
Write-Host "Guardian configure for $tool failed with exit code $LASTEXITCODE."
|
Write-Host "Guardian configure for $tool failed with exit code $LASTEXITCODE."
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
}
|
}
|
||||||
$config = $True
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "$GuardianCliLocation run --working-directory $WorkingDirectory --tool $tool --baseline mainbaseline --update-baseline $UpdateBaseline --logger-level $GuardianLoggerLevel --config $gdnConfigFile $config"
|
$configParam+=$gdnConfigFile
|
||||||
if ($config) {
|
|
||||||
& $GuardianCliLocation run --working-directory $WorkingDirectory --tool $tool --baseline mainbaseline --update-baseline $UpdateBaseline --logger-level $GuardianLoggerLevel --config $gdnConfigFile
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
Write-Host "Guardian run for $tool using $gdnConfigFile failed with exit code $LASTEXITCODE."
|
|
||||||
exit $LASTEXITCODE
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
& $GuardianCliLocation run --working-directory $WorkingDirectory --tool $tool --baseline mainbaseline --update-baseline $UpdateBaseline --logger-level $GuardianLoggerLevel
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
Write-Host "Guardian run for $tool failed with exit code $LASTEXITCODE."
|
|
||||||
exit $LASTEXITCODE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "$GuardianCliLocation run --working-directory $WorkingDirectory --baseline mainbaseline --update-baseline $UpdateBaseline --logger-level $GuardianLoggerLevel $configParam"
|
||||||
|
& $GuardianCliLocation run --working-directory $WorkingDirectory --tool $tool --baseline mainbaseline --update-baseline $UpdateBaseline --logger-level $GuardianLoggerLevel $configParam
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Write-Host "Guardian run for $ToolsList using $configParam failed with exit code $LASTEXITCODE."
|
||||||
|
exit $LASTEXITCODE
|
||||||
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: true
|
enableSymbolValidation: true
|
||||||
|
symbolPublishingAdditionalParameters: ''
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: IS_Publish
|
- stage: IS_Publish
|
||||||
|
@ -20,10 +22,16 @@ stages:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Artifacts
|
displayName: Download Blob Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
downloadType: specific files
|
artifactName: 'BlobArtifacts'
|
||||||
matchingPattern: "*Artifacts*"
|
continueOnError: true
|
||||||
|
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download PDB Artifacts
|
||||||
|
inputs:
|
||||||
|
artifactName: 'PDBArtifacts'
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Publish
|
displayName: Publish
|
||||||
|
@ -34,7 +42,9 @@ stages:
|
||||||
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
||||||
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
|
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- job: publish_assets
|
- job: publish_assets
|
||||||
displayName: Publish Assets
|
displayName: Publish Assets
|
||||||
|
@ -92,6 +102,7 @@ stages:
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Publish Packages to AzDO Feed
|
displayName: Publish Packages to AzDO Feed
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: true
|
enableSymbolValidation: true
|
||||||
|
symbolPublishingAdditionalParameters: ''
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: NetCore_Dev5_Publish
|
- stage: NetCore_Dev5_Publish
|
||||||
|
@ -20,10 +22,16 @@ stages:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Artifacts
|
displayName: Download Blob Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
downloadType: specific files
|
artifactName: 'BlobArtifacts'
|
||||||
matchingPattern: "*Artifacts*"
|
continueOnError: true
|
||||||
|
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download PDB Artifacts
|
||||||
|
inputs:
|
||||||
|
artifactName: 'PDBArtifacts'
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Publish
|
displayName: Publish
|
||||||
|
@ -34,7 +42,9 @@ stages:
|
||||||
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
||||||
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
|
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: Publish Assets
|
displayName: Publish Assets
|
||||||
|
@ -92,6 +102,7 @@ stages:
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Publish Packages to AzDO Feed
|
displayName: Publish Packages to AzDO Feed
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: true
|
enableSymbolValidation: true
|
||||||
|
symbolPublishingAdditionalParameters: ''
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: NetCore_Tools_Latest_Publish
|
- stage: NetCore_Tools_Latest_Publish
|
||||||
|
@ -20,10 +22,16 @@ stages:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Artifacts
|
displayName: Download Blob Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
downloadType: specific files
|
artifactName: 'BlobArtifacts'
|
||||||
matchingPattern: "*Artifacts*"
|
continueOnError: true
|
||||||
|
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download PDB Artifacts
|
||||||
|
inputs:
|
||||||
|
artifactName: 'PDBArtifacts'
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Publish
|
displayName: Publish
|
||||||
|
@ -34,7 +42,9 @@ stages:
|
||||||
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
||||||
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
|
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: Publish Assets
|
displayName: Publish Assets
|
||||||
|
@ -92,6 +102,7 @@ stages:
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Publish Packages to AzDO Feed
|
displayName: Publish Packages to AzDO Feed
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: true
|
enableSymbolValidation: true
|
||||||
|
symbolPublishingAdditionalParameters: ''
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Publish
|
- stage: Publish
|
||||||
|
@ -20,10 +22,16 @@ stages:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Artifacts
|
displayName: Download Blob Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
downloadType: specific files
|
artifactName: 'BlobArtifacts'
|
||||||
matchingPattern: "*Artifacts*"
|
continueOnError: true
|
||||||
|
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download PDB Artifacts
|
||||||
|
inputs:
|
||||||
|
artifactName: 'PDBArtifacts'
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Publish
|
displayName: Publish
|
||||||
|
@ -34,7 +42,9 @@ stages:
|
||||||
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
||||||
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
|
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: Publish Assets
|
displayName: Publish Assets
|
||||||
|
@ -92,6 +102,7 @@ stages:
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Publish Packages to AzDO Feed
|
displayName: Publish Packages to AzDO Feed
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: true
|
enableSymbolValidation: true
|
||||||
|
symbolPublishingAdditionalParameters: ''
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: PubRel_Publish
|
- stage: PubRel_Publish
|
||||||
|
@ -20,10 +22,16 @@ stages:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download Artifacts
|
displayName: Download Blob Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
downloadType: specific files
|
artifactName: 'BlobArtifacts'
|
||||||
matchingPattern: "*Artifacts*"
|
continueOnError: true
|
||||||
|
|
||||||
|
- task: DownloadBuildArtifacts@0
|
||||||
|
displayName: Download PDB Artifacts
|
||||||
|
inputs:
|
||||||
|
artifactName: 'PDBArtifacts'
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Publish
|
displayName: Publish
|
||||||
|
@ -34,7 +42,9 @@ stages:
|
||||||
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
||||||
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
||||||
|
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- job: publish_assets
|
- job: publish_assets
|
||||||
displayName: Publish Assets
|
displayName: Publish Assets
|
||||||
|
@ -92,6 +102,7 @@ stages:
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Publish Packages to AzDO Feed
|
displayName: Publish Packages to AzDO Feed
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
parameters:
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: PVR_Publish
|
- stage: PVR_Publish
|
||||||
dependsOn: validate
|
dependsOn: validate
|
||||||
|
@ -63,6 +66,7 @@ stages:
|
||||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Publish Packages to AzDO Feed
|
displayName: Publish Packages to AzDO Feed
|
||||||
|
|
|
@ -7,6 +7,12 @@ parameters:
|
||||||
enable: false
|
enable: false
|
||||||
params: ''
|
params: ''
|
||||||
|
|
||||||
|
# These parameters let the user customize the call to sdk-task.ps1 for publishing
|
||||||
|
# symbols & general artifacts as well as for signing validation
|
||||||
|
symbolPublishingAdditionalParameters: ''
|
||||||
|
artifactsPublishingAdditionalParameters: ''
|
||||||
|
signingValidationAdditionalParameters: ''
|
||||||
|
|
||||||
# Which stages should finish execution before post-build stages start
|
# Which stages should finish execution before post-build stages start
|
||||||
dependsOn: [build]
|
dependsOn: [build]
|
||||||
|
|
||||||
|
@ -53,7 +59,8 @@ stages:
|
||||||
arguments: -task SigningValidation -restore -msbuildEngine dotnet
|
arguments: -task SigningValidation -restore -msbuildEngine dotnet
|
||||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
||||||
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
|
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
|
||||||
/p:Configuration=Release
|
/p:Configuration=Release
|
||||||
|
${{ parameters.signingValidationAdditionalParameters }}
|
||||||
|
|
||||||
- ${{ if eq(parameters.enableSourceLinkValidation, 'true') }}:
|
- ${{ if eq(parameters.enableSourceLinkValidation, 'true') }}:
|
||||||
- job:
|
- job:
|
||||||
|
@ -87,17 +94,31 @@ stages:
|
||||||
- template: \eng\common\templates\post-build\channels\netcore-dev-5.yml
|
- template: \eng\common\templates\post-build\channels\netcore-dev-5.yml
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- template: \eng\common\templates\post-build\channels\public-dev-release.yml
|
- template: \eng\common\templates\post-build\channels\public-dev-release.yml
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- template: \eng\common\templates\post-build\channels\netcore-tools-latest.yml
|
- template: \eng\common\templates\post-build\channels\netcore-tools-latest.yml
|
||||||
parameters:
|
parameters:
|
||||||
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- template: \eng\common\templates\post-build\channels\public-validation-release.yml
|
- template: \eng\common\templates\post-build\channels\public-validation-release.yml
|
||||||
|
parameters:
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- template: \eng\common\templates\post-build\channels\public-release.yml
|
- template: \eng\common\templates\post-build\channels\public-release.yml
|
||||||
|
parameters:
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
||||||
- template: \eng\common\templates\post-build\channels\internal-servicing.yml
|
- template: \eng\common\templates\post-build\channels\internal-servicing.yml
|
||||||
|
parameters:
|
||||||
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
||||||
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.0.100-preview6-012264"
|
"dotnet": "3.0.100-preview6-012264"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19412.7"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19416.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue