Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
89b8a8bf
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
89b8a8bf
编写于
12月 06, 2019
作者:
M
msftbot[bot]
提交者:
GitHub
12月 06, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #40202 from dotnet/merges/release/dev16.4-to-master
Merge release/dev16.4 to master
上级
c2cc40e3
960e9a12
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
149 addition
and
173 deletion
+149
-173
NuGet.config
NuGet.config
+1
-0
eng/common/darc-init.ps1
eng/common/darc-init.ps1
+1
-1
eng/common/darc-init.sh
eng/common/darc-init.sh
+1
-1
eng/common/init-tools-native.ps1
eng/common/init-tools-native.ps1
+0
-1
eng/common/templates/job/execute-sdl.yml
eng/common/templates/job/execute-sdl.yml
+4
-4
eng/common/templates/job/job.yml
eng/common/templates/job/job.yml
+64
-70
eng/common/templates/jobs/jobs.yml
eng/common/templates/jobs/jobs.yml
+46
-28
eng/common/templates/post-build/channels/generic-internal-channel.yml
...emplates/post-build/channels/generic-internal-channel.yml
+6
-30
eng/common/templates/post-build/channels/generic-public-channel.yml
.../templates/post-build/channels/generic-public-channel.yml
+4
-15
eng/common/templates/post-build/post-build.yml
eng/common/templates/post-build/post-build.yml
+3
-12
eng/common/tools.ps1
eng/common/tools.ps1
+9
-5
eng/common/tools.sh
eng/common/tools.sh
+10
-6
未找到文件。
NuGet.config
浏览文件 @
89b8a8bf
...
...
@@ -4,6 +4,7 @@
<
packageSources
>
<
clear
/>
<
add
key
=
"dotnet-core"
value
=
"https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json"
/>
<
add
key
=
"dotnet-eng"
value
=
"https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json"
/>
<
add
key
=
"system-commandline"
value
=
"https://dotnet.myget.org/F/system-commandline/api/v3/index.json"
/>
<
add
key
=
"nuget.org"
value
=
"https://api.nuget.org/v3/index.json"
/>
<
add
key
=
"myget-dotnet-coreclr"
value
=
"https://dotnet.myget.org/F/dotnet-coreclr/api/v3/index.json"
/>
...
...
eng/common/darc-init.ps1
浏览文件 @
89b8a8bf
...
...
@@ -24,7 +24,7 @@ function InstallDarcCli ($darcVersion) {
$darcVersion
=
$
(
Invoke-WebRequest
-Uri
$versionEndpoint
-UseBasicParsing
)
.
Content
}
$arcadeServicesSource
=
'https://
pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3
/index.json'
$arcadeServicesSource
=
'https://
dotnetfeed.blob.core.windows.net/dotnet-core
/index.json'
Write-Host
"Installing Darc CLI version
$darcVersion
..."
Write-Host
'You may need to restart your command window if this is the first dotnet tool you have installed.'
...
...
eng/common/darc-init.sh
浏览文件 @
89b8a8bf
...
...
@@ -68,7 +68,7 @@ function InstallDarcCli {
fi
fi
local
arcadeServicesSource
=
"https://
pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3
/index.json"
local
arcadeServicesSource
=
"https://
dotnetfeed.blob.core.windows.net/dotnet-core
/index.json"
echo
"Installing Darc CLI version
$darcVersion
..."
echo
"You may need to restart your command shell if this is the first dotnet tool you have installed."
...
...
eng/common/init-tools-native.ps1
浏览文件 @
89b8a8bf
...
...
@@ -137,7 +137,6 @@ try {
if
(
Test-Path
$InstallBin
)
{
Write-Host
'Native tools are available from '
(
Convert-Path
-Path
$InstallBin
)
Write-Host
"##vso[task.prependpath]
$(
Convert-Path
-Path
$InstallBin
)
"
return
$InstallBin
}
else {
Write-PipelineTelemetryError -Category 'NativeToolsBootstrap' -Message 'Native tools install directory does not exist, installation failed'
...
...
eng/common/templates/job/execute-sdl.yml
浏览文件 @
89b8a8bf
...
...
@@ -40,13 +40,13 @@ jobs:
itemPattern
:
"
**"
downloadPath
:
$(Build.ArtifactStagingDirectory)\artifacts
-
powershell
:
eng/common/sdl/extract-artifact-packages.ps1
-InputPath $(Build.
ArtifactStaging
Directory)\artifacts\BlobArtifacts
-ExtractPath $(Build.
ArtifactStaging
Directory)\artifacts\BlobArtifacts
-InputPath $(Build.
Sources
Directory)\artifacts\BlobArtifacts
-ExtractPath $(Build.
Sources
Directory)\artifacts\BlobArtifacts
displayName
:
Extract Blob Artifacts
continueOnError
:
${{ parameters.sdlContinueOnError }}
-
powershell
:
eng/common/sdl/extract-artifact-packages.ps1
-InputPath $(Build.
ArtifactStaging
Directory)\artifacts\PackageArtifacts
-ExtractPath $(Build.
ArtifactStaging
Directory)\artifacts\PackageArtifacts
-InputPath $(Build.
Sources
Directory)\artifacts\PackageArtifacts
-ExtractPath $(Build.
Sources
Directory)\artifacts\PackageArtifacts
displayName
:
Extract Package Artifacts
continueOnError
:
${{ parameters.sdlContinueOnError }}
-
task
:
NuGetToolInstaller@1
...
...
eng/common/templates/job/job.yml
浏览文件 @
89b8a8bf
# Internal resources (telemetry, microbuild) can only be accessed from non-public projects,
# and some (Microbuild) should only be applied to non-PR cases for internal builds.
parameters
:
# Job schema parameters - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job
cancelTimeoutInMinutes
:
'
'
condition
:
'
'
container
:
'
'
continueOnError
:
false
container
:
'
'
dependsOn
:
'
'
displayName
:
'
'
pool
:
'
'
steps
:
[]
pool
:
'
'
strategy
:
'
'
timeoutInMinutes
:
'
'
variables
:
[]
workspace
:
'
'
# Job base template specific parameters
# See schema documentation - https://github.com/dotnet/arcade/blob/master/Documentation/AzureDevOps/TemplateSchema.md
artifacts
:
'
'
enableMicrobuild
:
false
# Optional: Include PublishBuildArtifacts task
enablePublishBuildArtifacts
:
false
# Optional: Enable publishing to the build asset registry
enablePublishBuildAssets
:
false
enablePublishTestResults
:
false
# Optional: Prevent gather/push manifest from executing when using publishing pipelines
enablePublishUsingPipelines
:
false
# Optional: Include PublishTestResults task
enablePublishTestResults
:
false
# Optional: enable sending telemetry
enableTelemetry
:
false
# Optional: define the helix repo for telemetry (example: 'dotnet/arcade')
helixRepo
:
'
'
# Optional: define the helix type for telemetry (example: 'build/product/')
helixType
:
'
'
# Required: name of the job
name
:
'
'
preSteps
:
[]
# Optional: should run as a public build even in the internal project
# if 'true', the build won't run any of the internal only steps, even if it is running in non-public projects.
runAsPublic
:
false
# Internal resources (telemetry, microbuild) can only be accessed from non-public projects,
# and some (Microbuild) should only be applied to non-PR cases for internal builds.
jobs
:
-
job
:
${{ parameters.name }}
...
...
@@ -59,7 +91,7 @@ jobs:
timeoutInMinutes
:
${{ parameters.timeoutInMinutes }}
variables
:
-
${{ if
ne(parameters.enableTelemetry, 'fals
e') }}
:
-
${{ if
eq(parameters.enableTelemetry, 'tru
e') }}
:
-
name
:
DOTNET_CLI_TELEMETRY_PROFILE
value
:
'
$(Build.Repository.Uri)'
-
${{ each variable in parameters.variables }}
:
...
...
@@ -91,12 +123,21 @@ jobs:
workspace
:
${{ parameters.workspace }}
steps
:
-
${{ if ne(parameters.preSteps, '') }}
:
-
${{ each preStep in parameters.preSteps }}
:
-
${{ preStep }}
-
${{ if eq(parameters.enableTelemetry, 'true') }}
:
# Telemetry tasks are built from https://github.com/dotnet/arcade-extensions
-
task
:
sendStartTelemetry@0
displayName
:
'
Send
Helix
Start
Telemetry'
inputs
:
helixRepo
:
${{ parameters.helixRepo }}
${{ if ne(parameters.helixType, '') }}
:
helixType
:
${{ parameters.helixType }}
buildConfig
:
$(_BuildConfig)
runAsPublic
:
${{ parameters.runAsPublic }}
continueOnError
:
${{ parameters.continueOnError }}
condition
:
always()
-
${{ if
and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')
) }}
:
-
${{ if
eq(parameters.enableMicrobuild, 'true'
) }}
:
-
${{ if
eq(parameters.enableMicrobuild, 'true'
) }}
:
-
${{ if
and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')
) }}
:
-
task
:
MicroBuildSigningPlugin@2
displayName
:
Install MicroBuild plugin
inputs
:
...
...
@@ -108,16 +149,9 @@ jobs:
continueOnError
:
${{ parameters.continueOnError }}
condition
:
and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
-
${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
task
:
NuGetAuthenticate@0
-
${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}
:
-
task
:
DownloadPipelineArtifact@2
inputs
:
buildType
:
current
artifactName
:
${{ coalesce(parameters.artifacts.download.name, 'Artifacts_$(Agent.OS)_$(_BuildConfig)') }}
targetPath
:
${{ coalesce(parameters.artifacts.download.path, 'artifacts') }}
itemPattern
:
${{ coalesce(parameters.artifacts.download.pattern, '**') }}
-
${{ each step in parameters.steps }}
:
-
${{ step }}
...
...
@@ -130,60 +164,20 @@ jobs:
env
:
TeamName
:
$(_TeamName)
-
${{ if ne(parameters.artifacts.publish, '') }}
:
-
${{ if or(eq(parameters.artifacts.publish.artifacts, 'true'), ne(parameters.artifacts.publish.artifacts, '')) }}
:
-
task
:
CopyFiles@2
displayName
:
Gather binaries for publish to artifacts
inputs
:
SourceFolder
:
'
artifacts/bin'
Contents
:
'
**'
TargetFolder
:
'
$(Build.ArtifactStagingDirectory)/artifacts/bin'
-
task
:
CopyFiles@2
displayName
:
Gather packages for publish to artifacts
inputs
:
SourceFolder
:
'
artifacts/packages'
Contents
:
'
**'
TargetFolder
:
'
$(Build.ArtifactStagingDirectory)/artifacts/packages'
-
task
:
PublishBuildArtifacts@1
displayName
:
Publish pipeline artifacts
inputs
:
PathtoPublish
:
'
$(Build.ArtifactStagingDirectory)/artifacts'
PublishLocation
:
Container
ArtifactName
:
${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}
continueOnError
:
true
condition
:
always()
-
${{ if or(eq(parameters.artifacts.publish.logs, 'true'), ne(parameters.artifacts.publish.logs, '')) }}
:
-
publish
:
artifacts/log
artifact
:
${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}
displayName
:
Publish logs
continueOnError
:
true
condition
:
always()
-
${{ if or(eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}
:
-
${{ if and(ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
task
:
CopyFiles@2
displayName
:
Gather Asset Manifests
inputs
:
SourceFolder
:
'
$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest'
TargetFolder
:
'
$(Build.ArtifactStagingDirectory)/AssetManifests'
continueOnError
:
${{ parameters.continueOnError }}
condition
:
and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
-
task
:
PublishBuildArtifacts@1
displayName
:
Push Asset Manifests
inputs
:
PathtoPublish
:
'
$(Build.ArtifactStagingDirectory)/AssetManifests'
PublishLocation
:
Container
ArtifactName
:
AssetManifests
continueOnError
:
${{ parameters.continueOnError }}
condition
:
and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
-
${{ if ne(parameters.enablePublishBuildArtifacts, 'false') }}
:
-
${{ if eq(parameters.enableTelemetry, 'true') }}
:
# Telemetry tasks are built from https://github.com/dotnet/arcade-extensions
-
task
:
sendEndTelemetry@0
displayName
:
'
Send
Helix
End
Telemetry'
continueOnError
:
${{ parameters.continueOnError }}
condition
:
always()
-
${{ if eq(parameters.enablePublishBuildArtifacts, 'true') }}
:
-
task
:
PublishBuildArtifacts@1
displayName
:
Publish Logs
inputs
:
PathtoPublish
:
'
$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
PublishLocation
:
Container
ArtifactName
:
$
{{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)' ) }}
ArtifactName
:
$
(Agent.Os)_$(Agent.JobName)
continueOnError
:
true
condition
:
always()
...
...
eng/common/templates/jobs/jobs.yml
浏览文件 @
89b8a8bf
parameters
:
#
See schema documentation in /Documentation/AzureDevOps/TemplateSchema.md
#
Optional: 'true' if failures in job.yml job should not fail the job
continueOnError
:
false
# Optional: Enable installing Microbuild plugin
# if 'true', these "variables" must be specified in the variables object or as part of the queue matrix
# _TeamName - the name of your team
# _SignType - 'test' or 'real'
enableMicrobuild
:
false
# Optional: Include PublishBuildArtifacts task
enablePublishBuildArtifacts
:
false
# Optional: Enable publishing to the build asset registry
enablePublishBuildAssets
:
false
# Optional: Enable publishing using release pipelines
enablePublishUsingPipelines
:
false
...
...
@@ -14,9 +23,19 @@ parameters:
# Optional: Include toolset dependencies in the generated graph files
includeToolset
:
false
# Optional: Include PublishTestResults task
enablePublishTestResults
:
false
# Optional: enable sending telemetry
# if enabled then the 'helixRepo' parameter should also be specified
enableTelemetry
:
false
# Required: A collection of jobs to run - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job
jobs
:
[]
# Optional: define the helix repo for telemetry (example: 'dotnet/arcade')
helixRepo
:
'
'
# Optional: Override automatically derived dependsOn value for "publish build assets" job
publishBuildAssetsDependsOn
:
'
'
...
...
@@ -43,30 +62,29 @@ jobs:
name
:
${{ job.job }}
-
${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
${{ if or(eq(parameters.enablePublishBuildAssets,
true
), eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}
:
-
template
:
../job/publish-build-assets.yml
parameters
:
continueOnError
:
${{ parameters.continueOnError }}
dependsOn
:
-
${{ if ne(parameters.publishBuildAssetsDependsOn, '') }}
:
-
${{ each job in parameters.publishBuildAssetsDependsOn }}
:
-
${{ job.job }}
-
${{ if eq(parameters.publishBuildAssetsDependsOn, '') }}
:
-
${{ each job in parameters.jobs }}
:
-
${{ job.job }}
pool
:
vmImage
:
vs2017-win2016
runAsPublic
:
${{ parameters.runAsPublic }}
publishUsingPipelines
:
${{ parameters.enablePublishUsingPipelines }}
enablePublishBuildArtifacts
:
${{ parameters.enablePublishBuildArtifacts }}
-
${{ if eq(parameters.graphFileGeneration.enabled,
true
) }}
:
-
template
:
../job/generate-graph-files.yml
parameters
:
continueOnError
:
${{ parameters.continueOnError }}
includeToolset
:
${{ parameters.graphFileGeneration.includeToolset }}
dependsOn
:
-
Asset_Registry_Publish
pool
:
vmImage
:
vs2017-win2016
-
${{ if and(eq(parameters.enablePublishBuildAssets,
true
), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
template
:
../job/publish-build-assets.yml
parameters
:
continueOnError
:
${{ parameters.continueOnError }}
dependsOn
:
-
${{ if ne(parameters.publishBuildAssetsDependsOn, '') }}
:
-
${{ each job in parameters.publishBuildAssetsDependsOn }}
:
-
${{ job.job }}
-
${{ if eq(parameters.publishBuildAssetsDependsOn, '') }}
:
-
${{ each job in parameters.jobs }}
:
-
${{ job.job }}
pool
:
vmImage
:
vs2017-win2016
runAsPublic
:
${{ parameters.runAsPublic }}
publishUsingPipelines
:
${{ parameters.enablePublishUsingPipelines }}
enablePublishBuildArtifacts
:
${{ parameters.enablePublishBuildArtifacts }}
-
${{ if and(eq(parameters.graphFileGeneration.enabled,
true
), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
template
:
../job/generate-graph-files.yml
parameters
:
continueOnError
:
${{ parameters.continueOnError }}
includeToolset
:
${{ parameters.graphFileGeneration.includeToolset }}
dependsOn
:
-
Asset_Registry_Publish
pool
:
vmImage
:
vs2017-win2016
eng/common/templates/post-build/channels/generic-internal-channel.yml
浏览文件 @
89b8a8bf
parameters
:
artifactsPublishingAdditionalParameters
:
'
'
dependsOn
:
-
Validate
publishInstallersAndChecksums
:
false
symbolPublishingAdditionalParameters
:
'
'
stageName
:
'
'
...
...
@@ -13,14 +10,14 @@ parameters:
stages
:
-
stage
:
${{ parameters.stageName }}
dependsOn
:
${{ parameters.dependsOn }}
dependsOn
:
validate
variables
:
-
template
:
../common-variables.yml
displayName
:
${{ parameters.channelName }} Publishing
jobs
:
-
template
:
../setup-maestro-vars.yml
-
job
:
publish_symbols
-
job
:
displayName
:
Symbol Publishing
dependsOn
:
setupMaestroVars
condition
:
contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} ))
...
...
@@ -41,18 +38,6 @@ stages:
artifactName
:
'
PDBArtifacts'
continueOnError
:
true
# This is necessary whenever we want to publish/restore to an AzDO private feed
# Since sdk-task.ps1 tries to restore packages we need to do this authentication here
# otherwise it'll complain about accessing a private feed.
-
task
:
NuGetAuthenticate@0
displayName
:
'
Authenticate
to
AzDO
Feeds'
-
task
:
PowerShell@2
displayName
:
Enable cross-org publishing
inputs
:
filePath
:
eng\common\enable-cross-org-publishing.ps1
arguments
:
-token $(dn-bot-dnceng-artifact-feeds-rw)
-
task
:
PowerShell@2
displayName
:
Publish
inputs
:
...
...
@@ -64,18 +49,14 @@ stages:
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
/p:Configuration=Release
/p:PublishToMSDL=false
${{ parameters.symbolPublishingAdditionalParameters }}
-
template
:
../../steps/publish-logs.yml
parameters
:
StageLabel
:
'
${{
parameters.stageName
}}'
JobLabel
:
'
SymbolPublishing'
-
job
:
publish_assets
displayName
:
Publish Assets
dependsOn
:
setupMaestroVars
variables
:
-
group
:
DotNet-Blob-Feed
-
group
:
AzureDevOps-Artifact-Feeds-Pats
-
name
:
BARBuildId
value
:
$[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
-
name
:
IsStableBuild
...
...
@@ -89,14 +70,13 @@ stages:
inputs
:
buildType
:
current
artifactName
:
PackageArtifacts
continueOnError
:
true
-
task
:
DownloadBuildArtifacts@0
displayName
:
Download Blob Artifacts
inputs
:
buildType
:
current
artifactName
:
BlobArtifacts
continueOnError
:
true
-
task
:
DownloadBuildArtifacts@0
displayName
:
Download Asset Manifests
inputs
:
...
...
@@ -140,6 +120,7 @@ stages:
/p:ChecksumsAzureAccountKey=$(InternalChecksumsBlobFeedKey)
/p:InstallersTargetStaticFeed=$(InternalInstallersBlobFeedUrl)
/p:InstallersAzureAccountKey=$(InternalInstallersBlobFeedKey)
/p:PublishToAzureDevOpsNuGetFeeds=true
/p:AzureDevOpsStaticShippingFeed='${{ parameters.shippingFeed }}'
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)'
/p:AzureDevOpsStaticTransportFeed='${{ parameters.transportFeed }}'
...
...
@@ -149,11 +130,6 @@ stages:
/p:PublishToMSDL=false
${{ parameters.artifactsPublishingAdditionalParameters }}
-
template
:
../../steps/publish-logs.yml
parameters
:
StageLabel
:
'
${{
parameters.stageName
}}'
JobLabel
:
'
AssetsPublishing'
-
template
:
../../steps/promote-build.yml
parameters
:
ChannelId
:
${{ parameters.channelId }}
eng/common/templates/post-build/channels/generic-public-channel.yml
浏览文件 @
89b8a8bf
parameters
:
artifactsPublishingAdditionalParameters
:
'
'
dependsOn
:
-
Validate
publishInstallersAndChecksums
:
false
symbolPublishingAdditionalParameters
:
'
'
stageName
:
'
'
...
...
@@ -13,14 +11,14 @@ parameters:
stages
:
-
stage
:
${{ parameters.stageName }}
dependsOn
:
${{ parameters.dependsOn }}
dependsOn
:
validate
variables
:
-
template
:
../common-variables.yml
displayName
:
${{ parameters.channelName }} Publishing
jobs
:
-
template
:
../setup-maestro-vars.yml
-
job
:
publish_symbols
-
job
:
displayName
:
Symbol Publishing
dependsOn
:
setupMaestroVars
condition
:
contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} ))
...
...
@@ -66,11 +64,6 @@ stages:
/p:Configuration=Release
${{ parameters.symbolPublishingAdditionalParameters }}
-
template
:
../../steps/publish-logs.yml
parameters
:
StageLabel
:
'
${{
parameters.stageName
}}'
JobLabel
:
'
SymbolPublishing'
-
job
:
publish_assets
displayName
:
Publish Assets
dependsOn
:
setupMaestroVars
...
...
@@ -141,6 +134,7 @@ stages:
/p:InstallersAzureAccountKey=$(dotnetcli-storage-key)
/p:ChecksumsTargetStaticFeed=$(ChecksumsBlobFeedUrl)
/p:ChecksumsAzureAccountKey=$(dotnetclichecksums-storage-key)
/p:PublishToAzureDevOpsNuGetFeeds=true
/p:AzureDevOpsStaticShippingFeed='${{ parameters.shippingFeed }}'
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)'
/p:AzureDevOpsStaticTransportFeed='${{ parameters.transportFeed }}'
...
...
@@ -149,11 +143,6 @@ stages:
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)'
${{ parameters.artifactsPublishingAdditionalParameters }}
-
template
:
../../steps/publish-logs.yml
parameters
:
StageLabel
:
'
${{
parameters.stageName
}}'
JobLabel
:
'
AssetsPublishing'
-
template
:
../../steps/promote-build.yml
parameters
:
ChannelId
:
${{ parameters.channelId }}
ChannelId
:
${{ parameters.channelId }}
\ No newline at end of file
eng/common/templates/post-build/post-build.yml
浏览文件 @
89b8a8bf
...
...
@@ -17,14 +17,11 @@ parameters:
signingValidationAdditionalParameters
:
'
'
# Which stages should finish execution before post-build stages start
validateDependsOn
:
-
build
publishDependsOn
:
-
Validate
dependsOn
:
[
build
]
stages
:
-
stage
:
V
alidate
dependsOn
:
${{ parameters.
validateD
ependsOn }}
-
stage
:
v
alidate
dependsOn
:
${{ parameters.
d
ependsOn }}
displayName
:
Validate
jobs
:
-
${{ if eq(parameters.enableNugetValidation, 'true') }}
:
...
...
@@ -121,7 +118,6 @@ stages:
-
template
:
\eng\common\templates\post-build\channels\generic-public-channel.yml
parameters
:
artifactsPublishingAdditionalParameters
:
${{ parameters.artifactsPublishingAdditionalParameters }}
dependsOn
:
${{ parameters.publishDependsOn }}
publishInstallersAndChecksums
:
${{ parameters.publishInstallersAndChecksums }}
symbolPublishingAdditionalParameters
:
${{ parameters.symbolPublishingAdditionalParameters }}
stageName
:
'
NetCore_Dev5_Publish'
...
...
@@ -134,7 +130,6 @@ stages:
-
template
:
\eng\common\templates\post-build\channels\generic-public-channel.yml
parameters
:
artifactsPublishingAdditionalParameters
:
${{ parameters.artifactsPublishingAdditionalParameters }}
dependsOn
:
${{ parameters.publishDependsOn }}
publishInstallersAndChecksums
:
${{ parameters.publishInstallersAndChecksums }}
symbolPublishingAdditionalParameters
:
${{ parameters.symbolPublishingAdditionalParameters }}
stageName
:
'
Net_Eng_Latest_Publish'
...
...
@@ -147,7 +142,6 @@ stages:
-
template
:
\eng\common\templates\post-build\channels\generic-public-channel.yml
parameters
:
artifactsPublishingAdditionalParameters
:
${{ parameters.artifactsPublishingAdditionalParameters }}
dependsOn
:
${{ parameters.publishDependsOn }}
publishInstallersAndChecksums
:
${{ parameters.publishInstallersAndChecksums }}
symbolPublishingAdditionalParameters
:
${{ parameters.symbolPublishingAdditionalParameters }}
stageName
:
'
Net_Eng_Validation_Publish'
...
...
@@ -160,7 +154,6 @@ stages:
-
template
:
\eng\common\templates\post-build\channels\generic-public-channel.yml
parameters
:
artifactsPublishingAdditionalParameters
:
${{ parameters.artifactsPublishingAdditionalParameters }}
dependsOn
:
${{ parameters.publishDependsOn }}
publishInstallersAndChecksums
:
${{ parameters.publishInstallersAndChecksums }}
symbolPublishingAdditionalParameters
:
${{ parameters.symbolPublishingAdditionalParameters }}
stageName
:
'
General_Testing_Publish'
...
...
@@ -173,7 +166,6 @@ stages:
-
template
:
\eng\common\templates\post-build\channels\generic-public-channel.yml
parameters
:
artifactsPublishingAdditionalParameters
:
${{ parameters.artifactsPublishingAdditionalParameters }}
dependsOn
:
${{ parameters.publishDependsOn }}
publishInstallersAndChecksums
:
${{ parameters.publishInstallersAndChecksums }}
symbolPublishingAdditionalParameters
:
${{ parameters.symbolPublishingAdditionalParameters }}
stageName
:
'
NETCore_Tooling_Dev_Publishing'
...
...
@@ -186,7 +178,6 @@ stages:
-
template
:
\eng\common\templates\post-build\channels\generic-public-channel.yml
parameters
:
artifactsPublishingAdditionalParameters
:
${{ parameters.artifactsPublishingAdditionalParameters }}
dependsOn
:
${{ parameters.publishDependsOn }}
publishInstallersAndChecksums
:
${{ parameters.publishInstallersAndChecksums }}
symbolPublishingAdditionalParameters
:
${{ parameters.symbolPublishingAdditionalParameters }}
stageName
:
'
NETCore_Tooling_Release_Publishing'
...
...
eng/common/tools.ps1
浏览文件 @
89b8a8bf
...
...
@@ -156,6 +156,15 @@ function InitializeDotNetCli([bool]$install) {
# Make Sure that our bootstrapped dotnet cli is available in future steps of the Azure Pipelines build
Write-PipelinePrependPath
-Path
$dotnetRoot
# Work around issues with Azure Artifacts credential provider
# https://github.com/dotnet/arcade/issues/3932
if
(
$ci
)
{
$
env
:
NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS
=
20
$
env
:
NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS
=
20
Write-PipelineSetVariable
-Name
'NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS'
-Value
'20'
Write-PipelineSetVariable
-Name
'NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS'
-Value
'20'
}
Write-PipelineSetVariable
-Name
'DOTNET_MULTILEVEL_LOOKUP'
-Value
'0'
Write-PipelineSetVariable
-Name
'DOTNET_SKIP_FIRST_TIME_EXPERIENCE'
-Value
'1'
...
...
@@ -523,11 +532,6 @@ function MSBuild() {
# https://github.com/dotnet/arcade/issues/3932
if
(
$ci
-and
$buildTool
.
Tool
-eq
'dotnet'
)
{
dotnet
nuget
locals
http-cache
-c
$
env
:
NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS
=
20
$
env
:
NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS
=
20
Write-PipelineSetVariable
-Name
'NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS'
-Value
'20'
Write-PipelineSetVariable
-Name
'NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS'
-Value
'20'
}
$toolsetBuildProject
=
InitializeToolset
...
...
eng/common/tools.sh
浏览文件 @
89b8a8bf
...
...
@@ -152,6 +152,15 @@ function InitializeDotNetCli {
# build steps from using anything other than what we've downloaded.
Write-PipelinePrependPath
-path
"
$dotnet_root
"
# Work around issues with Azure Artifacts credential provider
# https://github.com/dotnet/arcade/issues/3932
if
[[
"
$ci
"
==
true
]]
;
then
export
NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS
=
20
export
NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS
=
20
Write-PipelineSetVariable
-name
"NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS"
-value
"20"
Write-PipelineSetVariable
-name
"NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS"
-value
"20"
fi
Write-PipelineSetVariable
-name
"DOTNET_MULTILEVEL_LOOKUP"
-value
"0"
Write-PipelineSetVariable
-name
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE"
-value
"1"
...
...
@@ -355,12 +364,7 @@ function MSBuild {
# Work around issues with Azure Artifacts credential provider
# https://github.com/dotnet/arcade/issues/3932
if
[[
"
$ci
"
==
true
]]
;
then
"
$_InitializeBuildTool
"
nuget locals http-cache
-c
export
NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS
=
20
export
NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS
=
20
Write-PipelineSetVariable
-name
"NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS"
-value
"20"
Write-PipelineSetVariable
-name
"NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS"
-value
"20"
dotnet nuget locals http-cache
-c
fi
local
toolset_dir
=
"
${
_InitializeToolset
%/*
}
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录