Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions eng/pipelines/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ parameters:
- name: Service
type: string
default: auto
- name: SkipPrValidation
type: boolean
default: false

extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: ${{ parameters.Service }}
SkipPrValidation: ${{ parameters.SkipPrValidation }}
BuildTargetingString: "*"
TestProxy: true
TestTimeOutInMinutes: 180
Expand Down
22 changes: 22 additions & 0 deletions eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ parameters:
- name: ServiceDirectory
type: string
default: not-specified
- name: SkipPrValidation
type: boolean
default: false
- name: Artifacts
type: object
default: []
Expand Down Expand Up @@ -87,7 +90,26 @@ extends:
parameters:
oneESTemplateTag: ${{ parameters.oneESTemplateTag }}
stages:
- ${{ if and(eq(parameters.SkipPrValidation, true), eq(variables['Build.Reason'], 'Manual')) }}:
- stage: NoOp
displayName: No-op
variables:
- template: /eng/pipelines/templates/variables/globals.yml
- template: /eng/pipelines/templates/variables/image.yml
jobs:
- job: NoOp
displayName: No-op
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux
steps:
- checkout: none
- pwsh: Write-Host "PR validation skipped because SkipPrValidation was set to true for a manual run."
displayName: Skip PR validation

- stage: Build
condition: not(and(eq(${{ parameters.SkipPrValidation }}, true), eq(variables['Build.Reason'], 'Manual')))
Comment thread
raych1 marked this conversation as resolved.
jobs:
- template: /eng/pipelines/templates/jobs/ci.yml
parameters:
Expand Down
Loading