|
1 | | -# Pipeline: https://dev.azure.com/dnceng/internal/_build?definitionId= |
| 1 | +# Pipeline: https://dev.azure.com/dnceng/internal/_build?definitionId=1544 |
2 | 2 |
|
3 | 3 | trigger: |
4 | 4 | batch: true |
@@ -44,11 +44,17 @@ variables: |
44 | 44 | value: -publish |
45 | 45 | - name: _signArgument |
46 | 46 | value: -sign /p:SignCoreSdk=true |
| 47 | +- name: _TeamName |
| 48 | + value: DotNet-Cli |
| 49 | +- name: _BuildConfig |
| 50 | + value: Release |
47 | 51 | - name: _officialBuildProperties |
48 | 52 | # The OfficialBuilder property is set to Microsoft for the official build only. |
49 | 53 | # This property is checked in Directory.Build.props and adds the MICROSOFT_ENABLE_TELEMETRY constant. |
50 | 54 | # This constant is used in CompileOptions.cs to set both TelemetryOptOutDefault and TelemetryOptOutDefaultString. |
51 | 55 | value: /p:DotNetPublishUsingPipelines=true /p:OfficialBuilder=Microsoft /p:OfficialBuildId=$(Build.BuildNumber) |
| 56 | +- name: _SignType |
| 57 | + value: real |
52 | 58 |
|
53 | 59 | resources: |
54 | 60 | repositories: |
@@ -84,45 +90,45 @@ extends: |
84 | 90 | ignoreDirectories: artifacts, .packages |
85 | 91 |
|
86 | 92 | stages: |
87 | | - ############### BUILD STAGE ############### |
88 | | - ############### WINDOWS ############### |
89 | | - - template: /eng/pipelines/templates/jobs/dnup-tests.yml@self |
90 | | - parameters: |
91 | | - pool: |
92 | | - name: $($(DncEngInternalBuildPool)) |
93 | | - image: windows.vs2022.amd64 |
94 | | - os: windows |
95 | | - emoji: 🪟 |
96 | | - helixTargetQueue: windows.amd64.vs2022.pre |
97 | | - oneESCompat: |
98 | | - templateFolderName: templates-official |
99 | | - publishTaskPrefix: 1ES. |
100 | | - runtimeSourceProperties: /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64) |
101 | | - # WORKAROUND: BinSkim requires the folder exist prior to scanning. |
102 | | - preSteps: |
103 | | - - powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force |
104 | | - displayName: Create artifacts/bin directory |
105 | | - ${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}: |
106 | | - timeoutInMinutes: 180 |
107 | | - windowsJobParameterSets: |
108 | | - ### OFFICIAL ### |
109 | | - - categoryName: Official |
110 | | - publishArgument: $(_publishArgument) |
111 | | - signArgument: $(_signArgument) |
112 | | - officialBuildProperties: $(_officialBuildProperties) /p:BuildWorkloads=true |
113 | | - enableDefaultArtifacts: true |
114 | | - runTests: false |
115 | | - publishRetryConfig: true |
116 | | - variables: |
117 | | - _SignType: real |
118 | | - |
119 | | - ############### PACKAGE STAGE ############### |
120 | | - - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: |
121 | | - - stage: publish |
122 | | - displayName: Publish |
| 93 | + - stage: tests |
| 94 | + displayName: 🧪 dnup tests |
| 95 | + jobs: |
| 96 | + ### Windows ### |
| 97 | + - template: /eng/pipelines/templates/jobs/dnup/dnup-tests.yml@self |
| 98 | + parameters: |
| 99 | + pool: |
| 100 | + name: $(DncEngInternalBuildPool) |
| 101 | + image: windows.vs2022.amd64 |
| 102 | + os: windows |
| 103 | + emoji: 🪟 |
| 104 | + helixTargetQueue: windows.amd64.vs2022.pre |
| 105 | + oneESCompat: |
| 106 | + templateFolderName: templates-official |
| 107 | + publishTaskPrefix: 1ES. |
| 108 | + runtimeSourceProperties: /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64) |
| 109 | + # WORKAROUND: BinSkim requires the folder exist prior to scanning. |
| 110 | + preSteps: |
| 111 | + - powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force |
| 112 | + displayName: Create artifacts/bin directory |
| 113 | + ${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}: |
| 114 | + timeoutInMinutes: 180 |
| 115 | + windowsJobParameterSets: |
| 116 | + ### OFFICIAL ### |
| 117 | + - categoryName: Official |
| 118 | + publishArgument: $(_publishArgument) |
| 119 | + signArgument: $(_signArgument) |
| 120 | + officialBuildProperties: $(_officialBuildProperties) /p:BuildWorkloads=true |
| 121 | + enableDefaultArtifacts: true |
| 122 | + runTests: false |
| 123 | + publishRetryConfig: true |
| 124 | + variables: |
| 125 | + _SignType: real |
| 126 | + ### Packaging ### |
| 127 | + - stage: package |
| 128 | + displayName: 📦 Package dnup |
123 | 129 | dependsOn: [] |
124 | 130 | jobs: |
125 | | - - template: /eng/pipelines/templates/jobs/dnup-library-package.yml@self |
| 131 | + - template: /eng/pipelines/templates/jobs/dnup/dnup-library-package.yml@self |
126 | 132 | parameters: |
127 | 133 | pool: |
128 | 134 | name: $(DncEngInternalBuildPool) |
|
0 commit comments