Skip to content

Commit 001d8e4

Browse files
authored
[release/8.0.1xx] Fix internal VMR PR builds (#17208)
1 parent 2ad28c8 commit 001d8e4

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"microsoft.dotnet.darc": {
6-
"version": "1.1.0-beta.23374.1",
6+
"version": "1.1.0-beta.23416.3",
77
"commands": [
88
"darc"
99
]

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@
219219
<Uri>https://github.com/dotnet/arcade</Uri>
220220
<Sha>d3b8861e20aaf0179034c6076d156e2442b26f9b</Sha>
221221
</Dependency>
222-
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23374.1">
222+
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23416.3">
223223
<Uri>https://github.com/dotnet/arcade-services</Uri>
224-
<Sha>47ed0ea4d789d359d3749707374d7a5edd84eb19</Sha>
224+
<Sha>5d63a226d022fda90cae2c239e882ad253baa758</Sha>
225225
</Dependency>
226-
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23374.1">
226+
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23416.3">
227227
<Uri>https://github.com/dotnet/arcade-services</Uri>
228-
<Sha>47ed0ea4d789d359d3749707374d7a5edd84eb19</Sha>
228+
<Sha>5d63a226d022fda90cae2c239e882ad253baa758</Sha>
229229
</Dependency>
230230
<Dependency Name="Microsoft.Extensions.Logging.Console" Version="8.0.0-alpha.1.22557.12">
231231
<Uri>https://github.com/dotnet/runtime</Uri>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</PropertyGroup>
4444
<PropertyGroup>
4545
<!-- Dependency from https://github.com/dotnet/arcade-services -->
46-
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23374.1</MicrosoftDotNetDarcLibVersion>
46+
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23416.3</MicrosoftDotNetDarcLibVersion>
4747
</PropertyGroup>
4848
<PropertyGroup>
4949
<!-- Dependency from https://github.com/dotnet/winforms -->

eng/pipelines/templates/jobs/vmr-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- template: /eng/common/templates/variables/pool-providers.yml
7171
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
7272
- group: AzureDevOps-Artifact-Feeds-Pats
73-
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['System.TeamProject'], 'internal'), not(startswith(parameters.vmrBranch, 'internal/release/'))) }}:
73+
- ${{ if and(not(parameters.isBuiltFromVmr), eq(variables['System.TeamProject'], 'internal'), not(startswith(parameters.vmrBranch, 'internal/release/')), not(eq(variables['Build.Reason'], 'PullRequest'))) }}:
7474
- group: DotNetBot-GitHub
7575
- ${{ else }}:
7676
- name: BotAccount-dotnet-bot-repo-PAT

eng/pipelines/templates/steps/vmr-pull-updates.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ steps:
3232
./eng/vmr-sync.sh
3333
--vmr ${{ parameters.vmrPath }}
3434
--tmp $(Agent.TempDirectory)
35+
--azdev-pat '$(System.AccessToken)'
3536
--branch ${{ parameters.vmrBranch }}
3637
--repository "installer:${{ parameters.targetRef }}"
3738
--recursive

eng/pipelines/vmr-build-internal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resources:
3030
- repository: vmr
3131
type: git
3232
name: dotnet-dotnet
33-
ref: $(VmrBranch)
33+
ref: ${{ variables.VmrBranch }}
3434

3535
stages:
3636
# You can temporarily disable the VMR Build stage by changing the default of disableVmrBuild

eng/vmr-sync.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
### Optional. Template for the header of VMRs THIRD-PARTY-NOTICES file.
5959
### Defaults to src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt
6060
###
61+
### --azdev-pat
62+
### Optional. Azure DevOps PAT to use for cloning private repositories.
63+
###
6164
### -v, --vmr, --vmr-dir PATH
6265
### Optional. Path to the dotnet/dotnet repository. When null, gets cloned to the temporary folder
6366

@@ -102,6 +105,7 @@ recursive=false
102105
verbosity=verbose
103106
readme_template="$installer_dir/src/VirtualMonoRepo/README.template.md"
104107
tpn_template="$installer_dir/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt"
108+
azdev_pat=''
105109

106110
# If installer is a repo, we're in an installer and not in the dotnet/dotnet repo
107111
if [[ -d "$installer_dir/.git" ]]; then
@@ -142,6 +146,10 @@ while [[ $# -gt 0 ]]; do
142146
tpn_template=$2
143147
shift
144148
;;
149+
--azdev-pat)
150+
azdev_pat=$2
151+
shift
152+
;;
145153
-d|--debug)
146154
verbosity=debug
147155
;;
@@ -245,11 +253,16 @@ if [[ -n "$additional_remotes" ]]; then
245253
additional_remotes="--additional-remotes $additional_remotes"
246254
fi
247255

256+
if [[ -n "$azdev_pat" ]]; then
257+
azdev_pat="--azdev-pat $azdev_pat"
258+
fi
259+
248260
# Synchronize the VMR
249261

250262
"$dotnet" darc vmr update \
251263
--vmr "$vmr_dir" \
252264
--tmp "$tmp_dir" \
265+
$azdev_pat \
253266
--$verbosity \
254267
$recursive_arg \
255268
--readme-template "$readme_template" \

0 commit comments

Comments
 (0)