Skip to content

Instantly share code, notes, and snippets.

@gbougeard
Created June 9, 2016 22:11
Show Gist options
  • Save gbougeard/1298ef1911d15fc236f8ed66cfbd8e1f to your computer and use it in GitHub Desktop.
Save gbougeard/1298ef1911d15fc236f8ed66cfbd8e1f to your computer and use it in GitHub Desktop.
{
"keepWaitingPipelines": false,
"limitConcurrent": true,
"parallel": true,
"parameterConfig": [
{
"name": "VERSION",
"default": "master",
"hasOptions": false,
"options": [
{
"value": ""
}
],
"description": "Version to deploy"
}
],
"stages": [
{
"requisiteStageRefIds": [],
"refId": "1",
"type": "manualJudgment",
"name": "ManualJudgment",
"notifications": [],
"judgmentInputs": [
{
"value": "GO"
},
{
"value": "NOGO"
}
],
"failPipeline": true,
"restrictExecutionDuringTimeWindow": false,
"restrictedExecutionWindow": {
"whitelist": []
}
},
{
"requisiteStageRefIds": [
"1"
],
"refId": "2",
"type": "checkPreconditions",
"name": "Check Preconditions GO",
"preconditions": [
{
"failPipeline": false,
"context": {
"expression": "#judgmentInput('ManualJudgment')==\"GO\""
},
"type": "expression"
}
],
"comments": "${execution.stages[n].context.judgmentInput==\"GO\"}"
},
{
"requisiteStageRefIds": [
"2"
],
"refId": "3",
"type": "wait",
"name": "Wait 2s",
"waitTime": 2
},
{
"requisiteStageRefIds": [
"1"
],
"refId": "4",
"type": "checkPreconditions",
"name": "Check Preconditions NOGO",
"preconditions": [
{
"failPipeline": false,
"context": {
"expression": "#judgmentInput('ManualJudgment')==\"NOGO\""
},
"type": "expression"
}
]
},
{
"requisiteStageRefIds": [
"4"
],
"refId": "5",
"type": "wait",
"name": "Wait 1s",
"waitTime": 1
}
],
"triggers": [],
"notifications": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment