Skip to content

Instantly share code, notes, and snippets.

@ethanfrogers
Created December 21, 2018 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanfrogers/5123a5336f7e6ae4fd5fcda76536199b to your computer and use it in GitHub Desktop.
Save ethanfrogers/5123a5336f7e6ae4fd5fcda76536199b to your computer and use it in GitHub Desktop.
pipeline.json
{
"keepWaitingPipelines": false,
"limitConcurrent": true,
"stages": [
{
"action": "plan",
"artifacts": [
{
"reference": "{your-github-repo}",
"type": "git/repo"
}
],
"dir": "/",
"name": "Plan Terraform",
"refId": "1",
"requisiteStageRefIds": [],
"type": "terraform"
},
{
"failPipeline": true,
"instructions": "Check out the logs <a target=\"_blank\" href=\"{your-gate-url}/proxies/terraform/api/v1/job/${#stage('Plan Terraform')['context']['status']['id']}/logs\">here</a>",
"judgmentInputs": [],
"name": "Manual Judgment",
"notifications": [],
"refId": "2",
"requisiteStageRefIds": [
"1"
],
"type": "manualJudgment"
},
{
"action": "apply",
"artifacts": [
{
"reference": "{your-github-repo}",
"type": "git/repo"
}
],
"comments": "Apply logs <a target=\"_blank\" href=\"{your-gate-url}/proxies/terraform/api/v1/job/${#stage('Apply Terraform')['context']['status']['id']}/logs\">here</a>",
"completeOtherBranchesThenFail": false,
"continuePipeline": false,
"dir": "/",
"failPipeline": true,
"name": "Apply Terraform",
"refId": "3",
"requisiteStageRefIds": [
"2"
],
"type": "terraform"
}
],
"triggers": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment