Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"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
You can’t perform that action at this time.