Skip to content

Instantly share code, notes, and snippets.

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