-
-
Save justinrlee/3abe62e38f957ecd0ba3c417a6125555 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"appConfig": {}, | |
"keepWaitingPipelines": false, | |
"lastModifiedBy": "terraformer", | |
"limitConcurrent": true, | |
"parallel": false, | |
"parameterConfig": [ | |
{ | |
"default": "helloworld", | |
"label": "Environment Name", | |
"name": "environment_name", | |
"required": true | |
} | |
], | |
"stages": [ | |
{ | |
"action": "plan", | |
"artifacts": [ | |
{ | |
"reference": "https://github.com/my-org/my-terraform-repo", | |
"type": "git/repo", | |
"version": "refs/heads/my-branch" | |
} | |
], | |
"backendArtifact": { | |
"artifactAccount": "github-for-terraform", | |
"reference": "https://api.github.com/repos/my-org/my-terraform-repo/contents/backend.tf", | |
"type": "github/file" | |
}, | |
"comments": "View Plan output <a href=\"https://my-gate-endpoint/proxies/terraform/api/v1/job/${#stage('Plan')['context']['status']['id']}/logs\">here</a>", | |
"dir": "workspace", | |
"name": "Plan", | |
"overrides": { | |
"environment_name": "${parameters.environment_name}" | |
}, | |
"refId": "2", | |
"requisiteStageRefIds": [], | |
"type": "terraform" | |
}, | |
{ | |
"action": "apply", | |
"artifacts": [ | |
{ | |
"reference": "https://github.com/my-org/my-terraform-repo", | |
"type": "git/repo", | |
"version": "refs/heads/my-branch" | |
} | |
], | |
"backendArtifact": { | |
"artifactAccount": "github-for-terraform", | |
"reference": "https://api.github.com/repos/my-org/my-terraform-repo/contents/backend.tf", | |
"type": "github/file" | |
}, | |
"comments": "View Apply output <a href=\"https://my-gate-endpoint/proxies/terraform/api/v1/job/${#stage('Apply')['context']['status']['id']}/logs\">here</a>", | |
"dir": "workspace", | |
"name": "Apply", | |
"overrides": { | |
"environment_name": "${parameters.environment_name}" | |
}, | |
"refId": "4", | |
"requisiteStageRefIds": [ | |
"2" | |
], | |
"type": "terraform" | |
}, | |
{ | |
"action": "output", | |
"artifacts": [ | |
{ | |
"reference": "https://github.com/my-org/my-terraform-repo", | |
"type": "git/repo", | |
"version": "refs/heads/my-branch" | |
} | |
], | |
"backendArtifact": { | |
"artifactAccount": "github-for-terraform", | |
"reference": "https://api.github.com/repos/my-org/my-terraform-repo/contents/backend.tf", | |
"type": "github/file" | |
}, | |
"comments": "View Output output <a href=\"https://my-gate-endpoint/proxies/terraform/api/v1/job/${#stage('Output')['context']['status']['id']}/logs\">here</a>", | |
"dir": "workspace", | |
"name": "Output", | |
"overrides": { | |
"environment_name": "${parameters.environment_name}" | |
}, | |
"refId": "9", | |
"requisiteStageRefIds": [ | |
"4" | |
], | |
"type": "terraform" | |
}, | |
{ | |
"comments": "${#stage( 'Output' )[\"context\"][\"status\"][\"outputs\"][\"test_output\"][\"value\"]}", | |
"name": "Wait", | |
"refId": "10", | |
"requisiteStageRefIds": [ | |
"9" | |
], | |
"type": "wait", | |
"waitTime": 30 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment