Created
June 9, 2016 22:11
-
-
Save gbougeard/1298ef1911d15fc236f8ed66cfbd8e1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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