dotnet-installer/eng
Matt Mitchell 8dc41755cb
Switch repo to use native AzDO container support (#14541)
* Switch repo to use native AzDO container support

This is a major refactor of the YAML used by the installer repo. The goal is to utilize the native container support that AzDO provides, rather than building containers on the fly and issuing commands using custom infrastructure. To do this, the YAML requires a bit of a refactor. The matrix strategy approach used by the repo to build a ton of different OS's does not work with containers, because a matrix strategy only changes the variables available to each build command. It cannot change the AzDO host environment. In order to resolve this, I refactored build.yml to take and use optional container names. In the process of doing this, I discovered a number of other things about the old YAML that just happened to 'accidentally' work and fixed them or did general cleanup. Including:

- This construct, used in build.yml, does not work as you might expect. If the parameter is not declared as a boolean (or not declared at all), this evaluates to "does this parameter exist", not "is it true":

    ```
    ${{ if parameters.pgoInstrument }}:
    ```
- I fully specified all the parameters and their types to avoid issues in the future.
- Build pool selection was moved to build.yml
- Removed some unused parameters.
- There was a **very** subtle indentation change here: 762d2966ee/.vsts-ci.yml (L275-L281). This meant that this leg ran in both PR and official builds. I have no idea whether this was the intention or not, but I kept it this way and reorganized the file.

**One change of note:** One of the upsides of the original matrix based approach is that job dependencies are simple. The jobs generated by the matrix are referred to in `dependsOn` lists only by the original job that contains the matrix. That keeps the dependsOn list small even if the number of jobs generated is large. Installer has a large set of independently addressable jobs now. Normally, we would solve this by using the arcade jobs template. The jobs template takes a set of jobs and automatically adds dependsOn for the publishing jobs. BUT, AzDO does not allow templates to be passed as parameters to other templates. This would mean that you couldn't use the build.yml template in conjunction with the jobs template and would have to list all the installer jobs as dependencies. This list would be hard to keep up to date. To avoid this, I used a new feature of publishing (`publishAssetsImmediately`) which uses the Publish To Build Asset Registry job to do the actual publishing call, and put it in a separate phase, then eliminated the post-build.yml call. This means that the publishing stage depends on all jobs in the build stage, and does not need to address them individually. Eliminating the post-build.yml stage may seem odd, but this is what actually happens when `publishAssetsImmediately` is set to true anyway.
2022-09-27 11:15:12 -07:00
..
BuildConfiguration Add a build retry. 2021-07-09 16:04:27 -07:00
common Update dependencies from https://github.com/dotnet/arcade build 20220926.4 2022-09-27 12:25:38 +00:00
_prettyprint.sh
Build.props Add a VMR initialization (bootstrap) process (#14343) 2022-08-23 21:06:59 +02:00
build.yml Switch repo to use native AzDO container support (#14541) 2022-09-27 11:15:12 -07:00
configure-toolset.ps1 Optional Workload: Finalizer (#10356) 2021-05-04 20:55:39 -07:00
configure-toolset.sh Optional Workload: Finalizer (#10356) 2021-05-04 20:55:39 -07:00
CopyToLatest.cmd
core-sdk-build-env.sh remove unused env var 2021-09-12 16:24:08 -04:00
core-sdk-test-env.bat remove unused env var 2021-09-12 16:24:08 -04:00
core-sdk-test-env.sh remove unused env var 2021-09-12 16:24:08 -04:00
Key.snk
ManualVersions.props Update ManualVersions.props for upcoming Windows SDK projection 2022-08-17 20:21:00 +00:00
native.proj Optional Workload: Finalizer (#10356) 2021-05-04 20:55:39 -07:00
Publishing.props Use arcade's conditional pattern for publishing (#11172) 2021-07-20 12:33:43 -07:00
restore-toolset.ps1 remove unused env var 2021-09-12 16:24:08 -04:00
restore-toolset.sh Fix ArcadeBuildTarball on s390x 2022-08-11 12:59:49 +02:00
sdl-tsa-vars.config Update sdl-tsa-vars.config 2021-05-04 14:47:35 -07:00
SignCheckExclusionsFile.txt [release/5.0.4xx] Add sign check exclusions for non-shipping files (#11845) 2021-09-02 12:16:55 -07:00
Signing.props Re-support in-build signing (#14165) 2022-07-20 10:41:49 -07:00
source-build-tarball-build-official.yml Update 6.0.2xx with the current state of 1xx (#13244) 2022-03-04 20:43:03 -06:00
source-build-tarball-build.yml [automated] Merge branch 'release/6.0.2xx' => 'release/6.0.3xx' (#13461) (#13469) 2022-03-28 09:15:59 -07:00
SourceBuild.props Removing source build patches 2021-05-05 09:30:06 -07:00
SourceBuildPrebuiltBaseline.xml ArPow stage 1: local source-build infrastructure (#10186) 2021-04-16 09:35:26 -05:00
TestVersions.props Remove clicommandlineparser dependency (#9855) 2021-03-02 13:17:32 -08:00
version.csproj Optional Workload: Finalizer (#10356) 2021-05-04 20:55:39 -07:00
Version.Details.xml Update dependencies from https://github.com/dotnet/emsdk build 20220926.8 (#14585) 2022-09-27 16:56:03 +00:00
Versions.props Update dependencies from https://github.com/dotnet/emsdk build 20220926.8 (#14585) 2022-09-27 16:56:03 +00:00