Skip to content

Instantly share code, notes, and snippets.

@justinrlee
Created June 3, 2019 19:45
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 justinrlee/3abe62e38f957ecd0ba3c417a6125555 to your computer and use it in GitHub Desktop.
Save justinrlee/3abe62e38f957ecd0ba3c417a6125555 to your computer and use it in GitHub Desktop.
{
"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