2023-02-02 14:10:10 +00:00
|
|
|
pr: none
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- internal/release/*
|
2023-10-19 15:48:49 +00:00
|
|
|
exclude:
|
|
|
|
- internal/release/*.0.2xx
|
|
|
|
- internal/release/*.0.3xx
|
|
|
|
- internal/release/*.0.4xx
|
2023-02-02 14:10:10 +00:00
|
|
|
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: vmr
|
|
|
|
type: git
|
|
|
|
name: dotnet-dotnet
|
|
|
|
ref: $(Build.SourceBranch)
|
|
|
|
|
2024-03-25 11:06:00 +00:00
|
|
|
- repository: 1ESPipelineTemplates
|
|
|
|
type: git
|
|
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
|
|
ref: refs/tags/release
|
|
|
|
|
2023-02-02 14:10:10 +00:00
|
|
|
parameters:
|
|
|
|
- name: vmrBranch
|
|
|
|
displayName: dotnet-dotnet branch to push to
|
|
|
|
type: string
|
2023-02-08 15:33:20 +00:00
|
|
|
default: ' '
|
2023-02-02 14:10:10 +00:00
|
|
|
|
2024-03-25 11:06:00 +00:00
|
|
|
variables:
|
|
|
|
- template: /eng/common/templates-official/variables/pool-providers.yml@self
|
|
|
|
|
2023-02-03 14:24:12 +00:00
|
|
|
- ${{ if ne(parameters.vmrBranch, ' ') }}:
|
2023-02-02 14:10:10 +00:00
|
|
|
- name: VmrBranch
|
2023-02-08 16:40:25 +00:00
|
|
|
value: ${{ replace(parameters.vmrBranch, ' ', '') }}
|
2023-02-02 14:10:10 +00:00
|
|
|
- ${{ else }}:
|
|
|
|
- name: VmrBranch
|
|
|
|
value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
|
2024-03-25 11:06:00 +00:00
|
|
|
|
|
|
|
extends:
|
|
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
|
|
|
|
parameters:
|
|
|
|
sdl:
|
2024-03-25 12:30:58 +00:00
|
|
|
sourceAnalysisPool:
|
|
|
|
name: $(DncEngInternalBuildPool)
|
|
|
|
image: 1es-windows-2022
|
|
|
|
os: windows
|
|
|
|
|
2024-03-25 11:06:00 +00:00
|
|
|
sourceRepositoriesToScan:
|
|
|
|
exclude:
|
|
|
|
- repository: vmr
|
|
|
|
|
|
|
|
componentgovernance:
|
|
|
|
sourceScanPath: $(Agent.BuildDirectory)/vmr
|
|
|
|
ignoreDirectories: $(Agent.BuildDirectory)/vmr/src
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: VMRSynchronization
|
|
|
|
displayName: VMR Synchronization
|
|
|
|
jobs:
|
2024-03-25 12:30:58 +00:00
|
|
|
- template: /eng/pipelines/templates/jobs/vmr-synchronization.yml@self
|
2024-03-25 11:06:00 +00:00
|
|
|
parameters:
|
|
|
|
vmrBranch: ${{ variables.VmrBranch }}
|