-
Notifications
You must be signed in to change notification settings - Fork 394
Make official build assetless and clean-up #9555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ViktorHofer
wants to merge
2
commits into
main
Choose a base branch
from
MakeAssetlessBuildAndCleanup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+199
−193
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,162 @@ | ||
| trigger: | ||
| batch: true | ||
| branches: | ||
| include: | ||
| - stabilize | ||
| - main | ||
| - release/* | ||
| - internal/release/* | ||
| - feature/* | ||
| - legacy/* | ||
| pr: | ||
| branches: | ||
| include: | ||
| - stabilize | ||
| - main | ||
| - release/* | ||
| - feature/* | ||
| - legacy/* | ||
|
|
||
| variables: | ||
| # Cannot use key:value syntax in root defined variables | ||
| - name: _TeamName | ||
| value: NETDevUX | ||
| - name: _PublishUsingPipelines | ||
| value: true | ||
| - name: Codeql.Enabled | ||
| value: true | ||
| - name: EnableReleaseOneLocBuild | ||
| value: false | ||
| - template: /eng/common/templates-official/variables/pool-providers.yml | ||
|
|
||
| resources: | ||
| repositories: | ||
| - repository: 1esPipelines | ||
| type: git | ||
| name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
| ref: refs/tags/release | ||
|
|
||
| # This is necessary because 1ES doesn't work using strategy & matrix | ||
| parameters: | ||
| - name: buildConfigurations | ||
| type: object | ||
| default: | ||
| # Always build the Release configuration, but never sign for PRs. | ||
| - buildConfig: Release | ||
|
|
||
| extends: | ||
| ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: | ||
| template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines | ||
| ${{ else }}: | ||
| template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines | ||
| parameters: | ||
| sdl: | ||
| sourceAnalysisPool: | ||
| name: $(DncEngInternalBuildPool) | ||
| image: 1es-windows-2022 | ||
| os: windows | ||
| policheck: | ||
| enabled: true | ||
| tsa: | ||
| enabled: true | ||
| stages: | ||
| - stage: build | ||
| displayName: Build | ||
| jobs: | ||
| - template: /eng/common/templates-official/jobs/jobs.yml@self | ||
| parameters: | ||
| enableMicrobuild: true | ||
| enablePublishBuildArtifacts: true | ||
| enablePublishTestResults: true | ||
| enablePublishBuildAssets: true | ||
| enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }} | ||
| enableSourceBuild: true | ||
| publishAssetsImmediately: true | ||
| sourceBuildParameters: | ||
| enableInternalSources: true | ||
| enableTelemetry: true | ||
| helixRepo: dotnet/templating | ||
| jobs: | ||
| - ${{ each config in parameters.buildConfigurations }}: | ||
| - job: Windows_NT_${{ config.buildConfig }} | ||
| displayName: Windows_NT ${{ config.buildConfig }} | ||
| timeoutInMinutes: 90 | ||
| pool: | ||
| name: $(DncEngInternalBuildPool) | ||
| image: 1es-windows-2022 | ||
| os: windows | ||
| variables: | ||
| - _BuildConfig: ${{ config.buildConfig }} | ||
| - _SignType: test | ||
| - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}: | ||
| - _SignType: real | ||
| - _InternalBuildArgs: '' | ||
| # Only enable publishing in non-public, non PR scenarios. | ||
| - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: | ||
| # DotNet-Symbol-Server-Pats provides: microsoft-symbol-server-pat, symweb-symbol-server-pat | ||
| # Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT | ||
| - group: Publish-Build-Assets | ||
| - _InternalBuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName) | ||
| /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines) | ||
| /p:OfficialBuildId=$(BUILD.BUILDNUMBER) | ||
| steps: | ||
| # Use utility script to run script command dependent on agent OS. | ||
| - template: /eng/common/templates-official/steps/enable-internal-sources.yml@self | ||
| - ${{ if in(variables['Build.Reason'], 'PullRequest') }}: | ||
| - script: eng/common/cibuild.cmd | ||
| -configuration $(_BuildConfig) | ||
| -prepareMachine | ||
| -integrationTest | ||
| $(_InternalBuildArgs) | ||
| displayName: Windows Build / Publish | ||
| - ${{ else }}: | ||
| - script: eng/common/cibuild.cmd | ||
| -configuration $(_BuildConfig) | ||
| -prepareMachine | ||
| /p:Test=false | ||
| $(_InternalBuildArgs) | ||
| displayName: Windows Build / Publish | ||
|
|
||
| - ${{ if in(variables['Build.Reason'], 'PullRequest') }}: | ||
| - ${{ each config in parameters.buildConfigurations }}: | ||
| - job: OSX_${{ config.buildConfig }} | ||
| displayName: OSX ${{ config.buildConfig }} | ||
| pool: | ||
| vmImage: 'macOS-latest' | ||
| variables: | ||
| - _BuildConfig: ${{ config.buildConfig }} | ||
| - _SignType: none | ||
| steps: | ||
| - template: /eng/common/templates-official/steps/enable-internal-sources.yml@self | ||
| - script: eng/common/cibuild.sh | ||
| --configuration $(_BuildConfig) | ||
| --prepareMachine | ||
| --integrationTest | ||
| name: Build | ||
| displayName: Build | ||
|
|
||
| - ${{ if in(variables['Build.Reason'], 'PullRequest') }}: | ||
| - ${{ each config in parameters.buildConfigurations }}: | ||
| - job: Linux_${{ config.buildConfig }} | ||
| displayName: Linux ${{ config.buildConfig }} | ||
| pool: | ||
| ${{ if eq(variables['System.TeamProject'], 'public') }}: | ||
| name: $(DncEngPublicBuildPool) | ||
| image: 1es-ubuntu-2204-open | ||
| os: linux | ||
| ${{ if eq(variables['System.TeamProject'], 'internal') }}: | ||
| name: $(DncEngInternalBuildPool) | ||
| image: 1es-ubuntu-2204 | ||
| os: linux | ||
| variables: | ||
| - _BuildConfig: ${{ config.buildConfig }} | ||
| - _SignType: none | ||
| steps: | ||
| - template: /eng/common/templates-official/steps/enable-internal-sources.yml@self | ||
| - script: eng/common/cibuild.sh | ||
| --configuration $(_BuildConfig) | ||
| --prepareMachine | ||
| --integrationTest | ||
| name: Build | ||
| displayName: Build | ||
| condition: succeeded() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.