mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 17:53:58 +08:00
37 lines
868 B
YAML
37 lines
868 B
YAML
parameters:
|
|
- name: displayName
|
|
type: string
|
|
- name: instructions
|
|
type: string
|
|
- name: jobName
|
|
type: string
|
|
default: approval
|
|
- name: timeoutInMinutes
|
|
type: number
|
|
# 2 days
|
|
default: 2880
|
|
- name: onTimeout
|
|
type: string
|
|
default: 'reject'
|
|
values:
|
|
- resume
|
|
- reject
|
|
- name: dependsOnJob
|
|
type: string
|
|
default: ''
|
|
|
|
jobs:
|
|
- job: ${{ parameters.jobName }}
|
|
dependsOn: ${{ parameters.dependsOnJob }}
|
|
displayName: ${{ parameters.displayName }}
|
|
pool:
|
|
type: agentless
|
|
timeoutInMinutes: 4320 # job times out in 3 days
|
|
steps:
|
|
- task: ManualValidation@0
|
|
displayName: ${{ parameters.displayName }}
|
|
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
|
|
inputs:
|
|
instructions: ${{ parameters.instructions }}
|
|
onTimeout: ${{ parameters.onTimeout }}
|