Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
10334975
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,发现更多精彩内容 >>
未验证
提交
10334975
编写于
12月 07, 2019
作者:
D
dotnet-maestro[bot]
提交者:
GitHub
12月 07, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update dependencies from
https://github.com/dotnet/arcade
build 20191206.1 (#40230)
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19606.1
上级
c2563939
变更
13
显示空白变更内容
内联
并排
Showing
13 changed file
with
176 addition
and
151 deletion
+176
-151
eng/Version.Details.xml
eng/Version.Details.xml
+2
-2
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
+1
-0
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
+70
-64
eng/common/templates/jobs/jobs.yml
eng/common/templates/jobs/jobs.yml
+28
-46
eng/common/templates/post-build/channels/generic-internal-channel.yml
...emplates/post-build/channels/generic-internal-channel.yml
+30
-6
eng/common/templates/post-build/channels/generic-public-channel.yml
.../templates/post-build/channels/generic-public-channel.yml
+15
-4
eng/common/templates/post-build/post-build.yml
eng/common/templates/post-build/post-build.yml
+12
-3
eng/common/tools.ps1
eng/common/tools.ps1
+5
-9
eng/common/tools.sh
eng/common/tools.sh
+6
-10
global.json
global.json
+1
-1
未找到文件。
eng/Version.Details.xml
浏览文件 @
10334975
...
...
@@ -3,9 +3,9 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
<Dependency
Name=
"Microsoft.DotNet.Arcade.Sdk"
Version=
"5.0.0-beta.1960
5.6
"
>
<Dependency
Name=
"Microsoft.DotNet.Arcade.Sdk"
Version=
"5.0.0-beta.1960
6.1
"
>
<Uri>
https://github.com/dotnet/arcade
</Uri>
<Sha>
4
5bfe0972a7354356daf799aae88533dcd0f071a
</Sha>
<Sha>
4
c050b4705ee1743665e7ad721dfafdc9b82a4b7
</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
eng/common/darc-init.ps1
浏览文件 @
10334975
...
...
@@ -24,7 +24,7 @@ function InstallDarcCli ($darcVersion) {
$darcVersion
=
$
(
Invoke-WebRequest
-Uri
$versionEndpoint
-UseBasicParsing
)
.
Content
}
$arcadeServicesSource
=
'https://
dotnetfeed.blob.core.windows.net/dotnet-core
/index.json'
$arcadeServicesSource
=
'https://
pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3
/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
浏览文件 @
10334975
...
...
@@ -68,7 +68,7 @@ function InstallDarcCli {
fi
fi
local
arcadeServicesSource
=
"https://
dotnetfeed.blob.core.windows.net/dotnet-core
/index.json"
local
arcadeServicesSource
=
"https://
pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3
/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
浏览文件 @
10334975
...
...
@@ -137,6 +137,7 @@ 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
浏览文件 @
10334975
...
...
@@ -40,13 +40,13 @@ jobs:
itemPattern
:
"
**"
downloadPath
:
$(Build.ArtifactStagingDirectory)\artifacts
-
powershell
:
eng/common/sdl/extract-artifact-packages.ps1
-InputPath $(Build.
Sources
Directory)\artifacts\BlobArtifacts
-ExtractPath $(Build.
Sources
Directory)\artifacts\BlobArtifacts
-InputPath $(Build.
ArtifactStaging
Directory)\artifacts\BlobArtifacts
-ExtractPath $(Build.
ArtifactStaging
Directory)\artifacts\BlobArtifacts
displayName
:
Extract Blob Artifacts
continueOnError
:
${{ parameters.sdlContinueOnError }}
-
powershell
:
eng/common/sdl/extract-artifact-packages.ps1
-InputPath $(Build.
Sources
Directory)\artifacts\PackageArtifacts
-ExtractPath $(Build.
Sources
Directory)\artifacts\PackageArtifacts
-InputPath $(Build.
ArtifactStaging
Directory)\artifacts\PackageArtifacts
-ExtractPath $(Build.
ArtifactStaging
Directory)\artifacts\PackageArtifacts
displayName
:
Extract Package Artifacts
continueOnError
:
${{ parameters.sdlContinueOnError }}
-
task
:
NuGetToolInstaller@1
...
...
eng/common/templates/job/job.yml
浏览文件 @
10334975
# 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
:
'
'
continueOnError
:
false
container
:
'
'
continueOnError
:
false
dependsOn
:
'
'
displayName
:
'
'
steps
:
[]
pool
:
'
'
steps
:
[]
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
# 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
enablePublishUsingPipelines
:
false
name
:
'
'
# 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.
preSteps
:
[]
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 }}
...
...
@@ -91,7 +59,7 @@ jobs:
timeoutInMinutes
:
${{ parameters.timeoutInMinutes }}
variables
:
-
${{ if
eq(parameters.enableTelemetry, 'tru
e') }}
:
-
${{ if
ne(parameters.enableTelemetry, 'fals
e') }}
:
-
name
:
DOTNET_CLI_TELEMETRY_PROFILE
value
:
'
$(Build.Repository.Uri)'
-
${{ each variable in parameters.variables }}
:
...
...
@@ -123,21 +91,12 @@ jobs:
workspace
:
${{ parameters.workspace }}
steps
:
-
${{ 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 ne(parameters.preSteps, '') }}
:
-
${{ each preStep in parameters.preSteps }}
:
-
${{ preStep }}
-
${{ if eq(parameters.enableMicrobuild, 'true') }}
:
-
${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
${{ if eq(parameters.enableMicrobuild, 'true') }}
:
-
task
:
MicroBuildSigningPlugin@2
displayName
:
Install MicroBuild plugin
inputs
:
...
...
@@ -149,9 +108,16 @@ 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 }}
...
...
@@ -164,20 +130,60 @@ jobs:
env
:
TeamName
:
$(_TeamName)
-
${{ 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 }}
-
${{ 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
eq(parameters.enablePublishBuildArtifacts, 'tru
e') }}
:
-
${{ if
ne(parameters.enablePublishBuildArtifacts, 'fals
e') }}
:
-
task
:
PublishBuildArtifacts@1
displayName
:
Publish Logs
inputs
:
PathtoPublish
:
'
$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
PublishLocation
:
Container
ArtifactName
:
$
(Agent.Os)_$(Agent.JobName)
ArtifactName
:
$
{{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)' ) }}
continueOnError
:
true
condition
:
always()
...
...
eng/common/templates/jobs/jobs.yml
浏览文件 @
10334975
parameters
:
#
Optional: 'true' if failures in job.yml job should not fail the job
#
See schema documentation in /Documentation/AzureDevOps/TemplateSchema.md
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
...
...
@@ -23,19 +14,9 @@ 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
:
'
'
...
...
@@ -62,7 +43,8 @@ jobs:
name
:
${{ job.job }}
-
${{ if and(eq(parameters.enablePublishBuildAssets,
true
), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
${{ 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 }}
...
...
@@ -79,7 +61,7 @@ jobs:
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')
) }}
:
-
${{ if eq(parameters.graphFileGeneration.enabled,
true
) }}
:
-
template
:
../job/generate-graph-files.yml
parameters
:
continueOnError
:
${{ parameters.continueOnError }}
...
...
eng/common/templates/post-build/channels/generic-internal-channel.yml
浏览文件 @
10334975
parameters
:
artifactsPublishingAdditionalParameters
:
'
'
dependsOn
:
-
Validate
publishInstallersAndChecksums
:
false
symbolPublishingAdditionalParameters
:
'
'
stageName
:
'
'
...
...
@@ -10,14 +13,14 @@ parameters:
stages
:
-
stage
:
${{ parameters.stageName }}
dependsOn
:
validate
dependsOn
:
${{ parameters.dependsOn }}
variables
:
-
template
:
../common-variables.yml
displayName
:
${{ parameters.channelName }} Publishing
jobs
:
-
template
:
../setup-maestro-vars.yml
-
job
:
-
job
:
publish_symbols
displayName
:
Symbol Publishing
dependsOn
:
setupMaestroVars
condition
:
contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} ))
...
...
@@ -38,6 +41,18 @@ 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
:
...
...
@@ -49,14 +64,18 @@ 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
...
...
@@ -70,13 +89,14 @@ 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
:
...
...
@@ -120,7 +140,6 @@ 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 }}'
...
...
@@ -130,6 +149,11 @@ 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
浏览文件 @
10334975
parameters
:
artifactsPublishingAdditionalParameters
:
'
'
dependsOn
:
-
Validate
publishInstallersAndChecksums
:
false
symbolPublishingAdditionalParameters
:
'
'
stageName
:
'
'
...
...
@@ -11,14 +13,14 @@ parameters:
stages
:
-
stage
:
${{ parameters.stageName }}
dependsOn
:
validate
dependsOn
:
${{ parameters.dependsOn }}
variables
:
-
template
:
../common-variables.yml
displayName
:
${{ parameters.channelName }} Publishing
jobs
:
-
template
:
../setup-maestro-vars.yml
-
job
:
-
job
:
publish_symbols
displayName
:
Symbol Publishing
dependsOn
:
setupMaestroVars
condition
:
contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} ))
...
...
@@ -64,6 +66,11 @@ 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
...
...
@@ -134,7 +141,6 @@ 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 }}'
...
...
@@ -143,6 +149,11 @@ 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 }}
eng/common/templates/post-build/post-build.yml
浏览文件 @
10334975
...
...
@@ -17,11 +17,14 @@ parameters:
signingValidationAdditionalParameters
:
'
'
# Which stages should finish execution before post-build stages start
dependsOn
:
[
build
]
validateDependsOn
:
-
build
publishDependsOn
:
-
Validate
stages
:
-
stage
:
v
alidate
dependsOn
:
${{ parameters.
d
ependsOn }}
-
stage
:
V
alidate
dependsOn
:
${{ parameters.
validateD
ependsOn }}
displayName
:
Validate
jobs
:
-
${{ if eq(parameters.enableNugetValidation, 'true') }}
:
...
...
@@ -118,6 +121,7 @@ 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'
...
...
@@ -130,6 +134,7 @@ 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'
...
...
@@ -142,6 +147,7 @@ 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'
...
...
@@ -154,6 +160,7 @@ 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'
...
...
@@ -166,6 +173,7 @@ 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'
...
...
@@ -178,6 +186,7 @@ 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
浏览文件 @
10334975
...
...
@@ -156,15 +156,6 @@ 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'
...
...
@@ -532,6 +523,11 @@ 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
浏览文件 @
10334975
...
...
@@ -152,15 +152,6 @@ 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"
...
...
@@ -364,7 +355,12 @@ function MSBuild {
# Work around issues with Azure Artifacts credential provider
# https://github.com/dotnet/arcade/issues/3932
if
[[
"
$ci
"
==
true
]]
;
then
dotnet nuget locals http-cache
-c
"
$_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"
fi
local
toolset_dir
=
"
${
_InitializeToolset
%/*
}
"
...
...
global.json
浏览文件 @
10334975
...
...
@@ -7,6 +7,6 @@
"xcopy-msbuild"
:
"16.3.0-alpha"
},
"msbuild-sdks"
:
{
"Microsoft.DotNet.Arcade.Sdk"
:
"5.0.0-beta.1960
5.6
"
"Microsoft.DotNet.Arcade.Sdk"
:
"5.0.0-beta.1960
6.1
"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录