[release/8.0.1xx-rc1] Fix internal VMR PR builds (#17207)
This commit is contained in:
parent
8d3d6d0774
commit
684771d03c
7 changed files with 22 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
||||||
"isRoot": true,
|
"isRoot": true,
|
||||||
"tools": {
|
"tools": {
|
||||||
"microsoft.dotnet.darc": {
|
"microsoft.dotnet.darc": {
|
||||||
"version": "1.1.0-beta.23374.1",
|
"version": "1.1.0-beta.23416.3",
|
||||||
"commands": [
|
"commands": [
|
||||||
"darc"
|
"darc"
|
||||||
]
|
]
|
||||||
|
|
|
@ -219,13 +219,13 @@
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>46ff142f43e887d5f9a4d87ef39d72166f61db8d</Sha>
|
<Sha>46ff142f43e887d5f9a4d87ef39d72166f61db8d</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23374.1">
|
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23416.3">
|
||||||
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
||||||
<Sha>47ed0ea4d789d359d3749707374d7a5edd84eb19</Sha>
|
<Sha>5d63a226d022fda90cae2c239e882ad253baa758</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23374.1">
|
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23416.3">
|
||||||
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
||||||
<Sha>47ed0ea4d789d359d3749707374d7a5edd84eb19</Sha>
|
<Sha>5d63a226d022fda90cae2c239e882ad253baa758</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.Extensions.Logging.Console" Version="8.0.0-alpha.1.22557.12">
|
<Dependency Name="Microsoft.Extensions.Logging.Console" Version="8.0.0-alpha.1.22557.12">
|
||||||
<Uri>https://github.com/dotnet/runtime</Uri>
|
<Uri>https://github.com/dotnet/runtime</Uri>
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade-services -->
|
<!-- Dependency from https://github.com/dotnet/arcade-services -->
|
||||||
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23374.1</MicrosoftDotNetDarcLibVersion>
|
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23416.3</MicrosoftDotNetDarcLibVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
|
@ -70,7 +70,7 @@ jobs:
|
||||||
- template: /eng/common/templates/variables/pool-providers.yml
|
- template: /eng/common/templates/variables/pool-providers.yml
|
||||||
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
||||||
- group: AzureDevOps-Artifact-Feeds-Pats
|
- group: AzureDevOps-Artifact-Feeds-Pats
|
||||||
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['System.TeamProject'], 'internal'), not(startswith(parameters.vmrBranch, 'internal/release/'))) }}:
|
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['System.TeamProject'], 'internal'), not(startswith(parameters.vmrBranch, 'internal/release/')), not(eq(variables['Build.Reason'], 'PullRequest'))) }}:
|
||||||
- group: DotNetBot-GitHub
|
- group: DotNetBot-GitHub
|
||||||
- ${{ else }}:
|
- ${{ else }}:
|
||||||
- name: BotAccount-dotnet-bot-repo-PAT
|
- name: BotAccount-dotnet-bot-repo-PAT
|
||||||
|
|
|
@ -32,6 +32,7 @@ steps:
|
||||||
./eng/vmr-sync.sh
|
./eng/vmr-sync.sh
|
||||||
--vmr ${{ parameters.vmrPath }}
|
--vmr ${{ parameters.vmrPath }}
|
||||||
--tmp $(Agent.TempDirectory)
|
--tmp $(Agent.TempDirectory)
|
||||||
|
--azdev-pat '$(System.AccessToken)'
|
||||||
--branch ${{ parameters.vmrBranch }}
|
--branch ${{ parameters.vmrBranch }}
|
||||||
--repository "installer:${{ parameters.targetRef }}"
|
--repository "installer:${{ parameters.targetRef }}"
|
||||||
--recursive
|
--recursive
|
||||||
|
|
|
@ -30,7 +30,7 @@ resources:
|
||||||
- repository: vmr
|
- repository: vmr
|
||||||
type: git
|
type: git
|
||||||
name: dotnet-dotnet
|
name: dotnet-dotnet
|
||||||
ref: $(VmrBranch)
|
ref: ${{ variables.VmrBranch }}
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
# You can temporarily disable the VMR Build stage by changing the default of disableVmrBuild
|
# You can temporarily disable the VMR Build stage by changing the default of disableVmrBuild
|
||||||
|
|
|
@ -58,6 +58,9 @@
|
||||||
### Optional. Template for the header of VMRs THIRD-PARTY-NOTICES file.
|
### Optional. Template for the header of VMRs THIRD-PARTY-NOTICES file.
|
||||||
### Defaults to src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt
|
### Defaults to src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt
|
||||||
###
|
###
|
||||||
|
### --azdev-pat
|
||||||
|
### Optional. Azure DevOps PAT to use for cloning private repositories.
|
||||||
|
###
|
||||||
### -v, --vmr, --vmr-dir PATH
|
### -v, --vmr, --vmr-dir PATH
|
||||||
### Optional. Path to the dotnet/dotnet repository. When null, gets cloned to the temporary folder
|
### Optional. Path to the dotnet/dotnet repository. When null, gets cloned to the temporary folder
|
||||||
|
|
||||||
|
@ -102,6 +105,7 @@ recursive=false
|
||||||
verbosity=verbose
|
verbosity=verbose
|
||||||
readme_template="$installer_dir/src/VirtualMonoRepo/README.template.md"
|
readme_template="$installer_dir/src/VirtualMonoRepo/README.template.md"
|
||||||
tpn_template="$installer_dir/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt"
|
tpn_template="$installer_dir/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt"
|
||||||
|
azdev_pat=''
|
||||||
|
|
||||||
# If installer is a repo, we're in an installer and not in the dotnet/dotnet repo
|
# If installer is a repo, we're in an installer and not in the dotnet/dotnet repo
|
||||||
if [[ -d "$installer_dir/.git" ]]; then
|
if [[ -d "$installer_dir/.git" ]]; then
|
||||||
|
@ -142,6 +146,10 @@ while [[ $# -gt 0 ]]; do
|
||||||
tpn_template=$2
|
tpn_template=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--azdev-pat)
|
||||||
|
azdev_pat=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-d|--debug)
|
-d|--debug)
|
||||||
verbosity=debug
|
verbosity=debug
|
||||||
;;
|
;;
|
||||||
|
@ -245,11 +253,16 @@ if [[ -n "$additional_remotes" ]]; then
|
||||||
additional_remotes="--additional-remotes $additional_remotes"
|
additional_remotes="--additional-remotes $additional_remotes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$azdev_pat" ]]; then
|
||||||
|
azdev_pat="--azdev-pat $azdev_pat"
|
||||||
|
fi
|
||||||
|
|
||||||
# Synchronize the VMR
|
# Synchronize the VMR
|
||||||
|
|
||||||
"$dotnet" darc vmr update \
|
"$dotnet" darc vmr update \
|
||||||
--vmr "$vmr_dir" \
|
--vmr "$vmr_dir" \
|
||||||
--tmp "$tmp_dir" \
|
--tmp "$tmp_dir" \
|
||||||
|
$azdev_pat \
|
||||||
--$verbosity \
|
--$verbosity \
|
||||||
$recursive_arg \
|
$recursive_arg \
|
||||||
--readme-template "$readme_template" \
|
--readme-template "$readme_template" \
|
||||||
|
|
Loading…
Reference in a new issue