@@ -42,21 +42,30 @@ steps:
4242 displayName : Set git author to dotnet-maestro[bot]
4343 workingDirectory : ${{ parameters.vmrPath }}
4444
45- - script : >
46- ./eng/vmr-sync.sh
47- --vmr ${{ parameters.vmrPath }}
48- --tmp $(Agent.TempDirectory)
49- --azdev-pat '$(dn-bot-all-orgs-code-r)'
50- --branch ${{ parameters.vmrBranch }}
51- --repository "sdk:${{ parameters.targetRef }}"
52- --recursive
53- --remote "sdk:$(Agent.BuildDirectory)/sdk"
54- --component-template $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/Component.template.md
55- --tpn-template $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt
56- --ci
57- --debug
58- ||
59- (echo "##vso[task.logissue type=error]Failed to synchronize the VMR" && exit 1)
45+ - script : |
46+ enable_build_lookup=''
47+ if [ "$(Build.Reason)" != 'PullRequest' ] && [ "$(System.TeamProject)" == 'internal' ]; then
48+ enable_build_lookup='--enable-build-lookup'
49+ fi
50+
51+ ./eng/vmr-sync.sh \
52+ --vmr ${{ parameters.vmrPath }} \
53+ --tmp $(Agent.TempDirectory) \
54+ --azdev-pat '$(dn-bot-all-orgs-code-r)' \
55+ --branch ${{ parameters.vmrBranch }} \
56+ --repository "sdk:${{ parameters.targetRef }}" \
57+ --recursive \
58+ --remote "sdk:$(Agent.BuildDirectory)/sdk" \
59+ --component-template $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/Component.template.md \
60+ --tpn-template $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt \
61+ $enable_build_lookup \
62+ --ci \
63+ --debug
64+
65+ if [ "$?" -ne 0 ]; then
66+ echo "##vso[task.logissue type=error]Failed to synchronize the VMR"
67+ exit 1
68+ fi
6069 displayName : Synchronize dotnet/dotnet (Unix)
6170 condition : ne(variables['Agent.OS'], 'Windows_NT')
6271 workingDirectory : $(Agent.BuildDirectory)/sdk
@@ -65,20 +74,24 @@ steps:
6574 displayName : Disable astextplain in git diff (Windows)
6675 condition : eq(variables['Agent.OS'], 'Windows_NT')
6776
68- - powershell : >
77+ - powershell : |
78+ $enableBuildLookup = ""
79+ if ('$(Build.Reason)' -ne 'PullRequest' -and '$(System.TeamProject)' -eq 'internal') {
80+ $enableBuildLookup = "--enable-build-lookup"
81+ }
82+
6983 ./eng/vmr-sync.ps1 `
70- -vmr ${{ parameters.vmrPath }} `
71- -tmp $(Agent.TempDirectory) `
72- -azdevPat '$(dn-bot-all-orgs-code-r)' `
73- -branch ${{ parameters.vmrBranch }} `
74- -repository "sdk:${{ parameters.targetRef }}" `
75- -recursive `
76- # passing remote fails for some reason, but it is the default anyway
77- # -remote "sdk:$(Agent.BuildDirectory)/sdk"
78- -componentTemplate $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/Component.template.md `
79- -tpnTemplate $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt `
80- -ci
81- -debugOutput
84+ -vmr ${{ parameters.vmrPath }} `
85+ -tmp $(Agent.TempDirectory) `
86+ -azdevPat '$(dn-bot-all-orgs-code-r)' `
87+ -branch ${{ parameters.vmrBranch }} `
88+ -repository "sdk:${{ parameters.targetRef }}" `
89+ -recursive `
90+ -componentTemplate $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/Component.template.md `
91+ -tpnTemplate $(Agent.BuildDirectory)/sdk/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt `
92+ $enableBuildLookup `
93+ -ci `
94+ -debugOutput
8295
8396 if ($LASTEXITCODE -ne 0) {
8497 echo "##vso[task.logissue type=error]Failed to synchronize the VMR"
0 commit comments