Skip to content

Commit 3d42eb6

Browse files
authored
Clarify use of rebootstrapping pipeline + update stage 2 build instructions (#4531)
1 parent 62d5e5c commit 3d42eb6

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

Documentation/VMR-re-bootstrapping.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ dependency on a new toolset feature until after that feature has been released.
2929
# Steps to re-bootstrap
3030

3131
## Automated
32-
You can re-bootstrap the VMR using [this pipeline](https://dev.azure.com/dnceng/internal/_build?definitionId=1371). The pipeline will upload the artifacts & open the corresponding re-bootstrap PR.
32+
33+
> [!IMPORTANT]
34+
> The re-bootstrap pipeline uploads the artifacts to the official blob storage,
35+
> so do not use this pipeline for testing of any kind.
36+
> To test stage 2 failures, please refer to [this documentation](bootstrapping-guidelines.md#building-on-a-supported-platform-using-rid-known-to-net).
37+
38+
You can re-bootstrap the VMR using [this pipeline](https://dev.azure.com/dnceng/internal/_build?definitionId=1371).
39+
The pipeline will upload the artifacts & open the corresponding re-bootstrap PR.
3340

3441
## Manual
3542
In case the automated re-bootstrapping pipeline is unavailable, you can manually re-bootstrap the VMR:

Documentation/bootstrapping-guidelines.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,39 @@ Building .NET for the first time is a two stage process:
2929
1. Download a platform-native portable Microsoft-built version of the dotnet SDK for bootstrapping as well as the previously-source-built package archive.
3030

3131
``` bash
32-
./prep.sh
32+
./prep-source-build.sh
3333
```
3434

3535
1. Build the source built .NET SDK.
3636

3737
``` bash
38-
./build.sh
38+
./build.sh --source-only
3939
```
4040

41-
**Stage 2:** Use the source built .NET SDK created in stage 1 to build .NET SDK from source. There is no need to run `prep.sh` in this stage.
41+
**Stage 2:** Use the source-built .NET SDK and source-built artifacts created in stage 1 to build .NET SDK from source.
4242

4343
1. Extract your freshly-built stage 1 SDK to a convenient location.
4444

4545
``` bash
46-
tar -ozxf /<stage1-path>/artifacts/<arch>/Release/dotnet-sdk-<version>-<rid>-tar.gz -C <extracted-stage1-sdk-path>
46+
tar -ozxf /<stage1-path>/artifacts/assets/Release/dotnet-sdk-<version>-<rid>-tar.gz -C <extracted-stage1-sdk-path>
4747
```
4848

49+
1. Extract your freshly-built stage 1 source-built artifacts to a convenient location.
50+
51+
```bash
52+
tar -ozxf /<stage1-path>/artifacts/assets/Release/Private.SourceBuilt.Artifacts.<version>-<rid>-.tar.gz -C <extracted-stage1-artifacts-path>
53+
```
54+
55+
1. Prep the build.
56+
57+
```bash
58+
./prep-source-build.sh --no-sdk --no-artifacts --with-sdk <extracted-stage1-sdk-path> --with-packages <extracted-stage1-artifacts-path>
59+
60+
4961
1. Build the source built .NET SDK.
5062
5163
``` bash
52-
./build.sh --with-sdk <extracted-stage1-sdk-path> --with-packages /<stage1-path>/obj/bin/<arch>/blob-feed/packages
64+
./build.sh --source-only --with-sdk <extracted-stage1-sdk-path> --with-packages <extracted-stage1-artifacts-path>
5365
```
5466

5567
## Building for New OS (Using a RID unknown to .NET)
@@ -110,5 +122,5 @@ While this is a more complicated scenario that may differ from platform to platf
110122
Building a subsequent or servicing version of .NET requires that you have source built the previous version of .NET available as descibed in one of the [building scenarios](#scenarios). Once you have a previous verion of the .NET SDK available, all you have to do is run the following build command.
111123

112124
``` bash
113-
./build.sh --with-sdk <extracted-previously-source-built-sdk-path> --with-packages <extracted-previously-source-built-packages-path>
125+
./build.sh --source-only --with-sdk <extracted-previously-source-built-sdk-path> --with-packages <extracted-previously-source-built-packages-path>
114126
```

0 commit comments

Comments
 (0)