Merge in 'release/8.0.1xx' changes

This commit is contained in:
dotnet-bot 2024-03-26 13:28:54 +00:00
commit 57c85a75bb
3 changed files with 74 additions and 23 deletions

View file

@ -19,10 +19,13 @@ parameters:
jobs: jobs:
- job: Synchronize_VMR - job: Synchronize_VMR
displayName: Synchronize dotnet/dotnet displayName: Synchronize VMR's ${{ parameters.vmrBranch }}
timeoutInMinutes: 120 timeoutInMinutes: 120
variables: variables:
- template: /eng/common/templates/variables/pool-providers.yml - ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: /eng/common/templates/variables/pool-providers.yml
- ${{ else }}:
- template: /eng/common/templates-official/variables/pool-providers.yml
- name: vmrPath - name: vmrPath
value: $(Agent.BuildDirectory)/vmr value: $(Agent.BuildDirectory)/vmr
- ${{ if not(parameters.noPush) }}: - ${{ if not(parameters.noPush) }}:
@ -36,20 +39,21 @@ jobs:
- group: DotNetBot-AzDO-PAT - group: DotNetBot-AzDO-PAT
- name: vmrInternalUrl - name: vmrInternalUrl
value: https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-dotnet value: https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-dotnet
pool: pool:
${{ if eq(variables['System.TeamProject'], 'public') }}: ${{ if eq(variables['System.TeamProject'], 'public') }}:
name: $(DncEngPublicBuildPool) name: $(DncEngPublicBuildPool)
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64.Open image: 1es-ubuntu-2004-open
${{ if eq(variables['System.TeamProject'], 'internal') }}: os: linux
${{ else }}:
name: $(DncEngInternalBuildPool) name: $(DncEngInternalBuildPool)
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64 demands: ImageOverride -equals 1es-ubuntu-2004
os: linux
steps: steps:
- template: ../steps/vmr-prepare.yml - template: ../steps/vmr-prepare.yml
parameters: parameters:
vmrBranch: ${{ parameters.vmrBranch }} vmrBranch: ${{ parameters.vmrBranch }}
isBuiltFromVmr: false
- template: ../steps/vmr-pull-updates.yml - template: ../steps/vmr-pull-updates.yml
parameters: parameters:
@ -57,7 +61,6 @@ jobs:
vmrBranch: ${{ parameters.vmrBranch }} vmrBranch: ${{ parameters.vmrBranch }}
targetRef: ${{ parameters.targetRef }} targetRef: ${{ parameters.targetRef }}
- ${{ if and(not(parameters.noPush), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}: - ${{ if and(not(parameters.noPush), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}:
# Push main and release branches to the public VMR # Push main and release branches to the public VMR
- ${{ if or(eq(parameters.vmrBranch, 'main'), startsWith(parameters.vmrBranch, 'release/')) }}: - ${{ if or(eq(parameters.vmrBranch, 'main'), startsWith(parameters.vmrBranch, 'release/')) }}:
@ -83,4 +86,4 @@ jobs:
--azdev-pat '$(dn-bot-dnceng-build-rw-code-rw)' --azdev-pat '$(dn-bot-dnceng-build-rw-code-rw)'
--verbose --verbose
displayName: Push changes to dotnet-dotnet (internal) displayName: Push changes to dotnet-dotnet (internal)
workingDirectory: $(Agent.BuildDirectory)/installer workingDirectory: $(Agent.BuildDirectory)/installer

View file

@ -17,21 +17,46 @@ resources:
name: dotnet-dotnet name: dotnet-dotnet
ref: $(Build.SourceBranch) ref: $(Build.SourceBranch)
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
parameters: parameters:
- name: vmrBranch - name: vmrBranch
displayName: dotnet-dotnet branch to push to displayName: dotnet-dotnet branch to push to
type: string type: string
default: ' ' default: ' '
variables: variables:
- ${{ if ne(parameters.vmrBranch, ' ') }}: - ${{ if ne(parameters.vmrBranch, ' ') }}:
- name: VmrBranch - name: VmrBranch
value: ${{ replace(parameters.vmrBranch, ' ', '') }} value: ${{ replace(parameters.vmrBranch, ' ', '') }}
- ${{ else }}: - ${{ else }}:
- name: VmrBranch - name: VmrBranch
value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }} value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
jobs: extends:
- template: templates/jobs/vmr-synchronization.yml template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters: parameters:
vmrBranch: ${{ variables.VmrBranch }} sdl:
sourceAnalysisPool:
name: $(DncEngInternalBuildPool)
image: 1es-windows-2022
os: windows
sourceRepositoriesToScan:
exclude:
- repository: vmr
componentgovernance:
sourceScanPath: $(Agent.BuildDirectory)/vmr
ignoreDirectories: $(Agent.BuildDirectory)/vmr/src
stages:
- stage: VMRSynchronization
displayName: VMR Synchronization
jobs:
- template: /eng/pipelines/templates/jobs/vmr-synchronization.yml@self
parameters:
vmrBranch: ${{ variables.VmrBranch }}

View file

@ -19,23 +19,46 @@ resources:
endpoint: dotnet endpoint: dotnet
ref: $(Build.SourceBranch) ref: $(Build.SourceBranch)
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
parameters: parameters:
- name: vmrBranch - name: vmrBranch
displayName: dotnet/dotnet branch to push to displayName: dotnet/dotnet branch to push to
type: string type: string
default: ' ' default: ' '
variables: variables:
- ${{ if ne(parameters.vmrBranch, ' ') }}: - ${{ if ne(parameters.vmrBranch, ' ') }}:
- name: VmrBranch - name: VmrBranch
value: ${{ replace(parameters.vmrBranch, ' ', '') }} value: ${{ replace(parameters.vmrBranch, ' ', '') }}
- ${{ else }}: - ${{ else }}:
- name: VmrBranch - name: VmrBranch
value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }} value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
jobs: extends:
- template: /eng/pipelines/templates/jobs/vmr-synchronization.yml template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters: parameters:
vmrBranch: ${{ variables.VmrBranch }} sdl:
sourceAnalysisPool:
name: $(DncEngInternalBuildPool)
image: 1es-windows-2022
os: windows
sourceRepositoriesToScan:
exclude:
- repository: vmr
componentgovernance:
sourceScanPath: $(Agent.BuildDirectory)/vmr
ignoreDirectories: $(Agent.BuildDirectory)/vmr/src
stages:
- stage: VMRSynchronization
displayName: VMR Synchronization
jobs:
- template: /eng/pipelines/templates/jobs/vmr-synchronization.yml@self
parameters:
vmrBranch: ${{ variables.VmrBranch }}