Skip to content

Commit 66d859b

Browse files
committed
Create separate arcade build script package step
1 parent 4a81551 commit 66d859b

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.vsts-dnup-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,17 @@ variables:
4444
value: -publish
4545
- name: _signArgument
4646
value: -sign /p:SignCoreSdk=true
47+
- name: _TeamName
48+
value: DotNet-Cli
49+
- name: _BuildConfig
50+
value: Release
4751
- name: _officialBuildProperties
4852
# The OfficialBuilder property is set to Microsoft for the official build only.
4953
# This property is checked in Directory.Build.props and adds the MICROSOFT_ENABLE_TELEMETRY constant.
5054
# This constant is used in CompileOptions.cs to set both TelemetryOptOutDefault and TelemetryOptOutDefaultString.
5155
value: /p:DotNetPublishUsingPipelines=true /p:OfficialBuilder=Microsoft /p:OfficialBuildId=$(Build.BuildNumber)
56+
- name: _SignType
57+
value: real
5258

5359
resources:
5460
repositories:

eng/pipelines/templates/jobs/dnup-library-package.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,17 @@ jobs:
3939
analyzeTargetGlob: +:f|eng\**\*.props;+:f|artifacts\bin\**\*.dll;+:f|artifacts\bin\**\*.exe;-:f|artifacts\bin\**\msdia140.dll;-:f|artifacts\bin\**\pgort140.dll;-:f|artifacts\bin\*Tests\**;-:f|**\Microsoft.NET.Runtime.Emscripten**\tools\**;-:f|**\CodeCoverage\**;-:f|artifacts\bin\**\capstone.dll;
4040
outputs:
4141
- output: pipelineArtifact
42-
displayName: '🌐 Publish dnup library package'
42+
displayName: '🌐 Publish dnup library package from standard ci'
4343
condition: always()
4444
targetPath: '$(Build.SourcesDirectory)/artifacts/packages/Release/NonShipping/'
4545
artifactName: 'Microsoft.Dotnet.Installation.1.0.0-alpha.nupkg' # TODO: Replace hard-coded with * or version
4646
publishLocation: Container
47+
- output: pipelineArtifact
48+
displayName: '🌏 Publish dnup library package from Arcade'
49+
condition: always()
50+
targetPath: ' $(System.DefaultWorkingDirectory)/artifacts/packages/Release/Shipping/'
51+
artifactName: 'Microsoft.Dotnet.Installation.1.0.0-alpha.nupkg' # TODO: Replace hard-coded with * or version
52+
publishLocation: Container
4753

4854
steps:
4955
- ${{ if eq(parameters.pool.os, 'windows') }}:
@@ -59,3 +65,16 @@ jobs:
5965
- powershell: |
6066
& .\.dotnet\dotnet pack .\src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation.csproj
6167
displayName: 📦 Package dnup library
68+
- powershell: >-
69+
eng/common/build.ps1
70+
-restore -build -sign -pack -publish -ci
71+
-verbosity detailed
72+
-binaryLog
73+
-configuration $(_BuildConfig)
74+
-projects src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation.csproj;src\Installer\dnup\dnup.csproj
75+
/p:DotNetSignType=$(_SignType)
76+
/p:TeamName=$(_TeamName)
77+
/p:DotNetPublishUsingPipelines=true
78+
/p:OfficialBuildId=$(OfficialBuildId)
79+
/p:StabilizePackageVersion=${{ parameters.stabilizePackageVersion }}
80+
displayName: 📦 Package dnup library (arcade)

0 commit comments

Comments
 (0)