Skip to content

Commit

Permalink
added comments in jenkinsfile for start and end of each stage
Browse files Browse the repository at this point in the history
  • Loading branch information
guptarhl committed Mar 31, 2020
1 parent c036508 commit 6b3d3ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example-pipelines/environments/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pipeline {
label "terraform-exec"
}
stages {
// [START tf-init, tf-validate]
stage('TF init & validate') {
when { anyOf {branch "prod";branch "dev";changeRequest() } }
steps {
Expand Down Expand Up @@ -52,6 +53,9 @@ pipeline {
}
}
}
// [END tf-init, tf-validate]

// [START tf-plan]
stage('TF plan') {
when { anyOf {branch "prod";branch "dev";changeRequest() } }
steps {
Expand Down Expand Up @@ -83,6 +87,9 @@ pipeline {
}
}
}
// [END tf-plan]

// [START tf-apply]
stage('TF Apply') {
when { anyOf {branch "prod";branch "dev" } }
steps {
Expand All @@ -101,5 +108,6 @@ pipeline {
}
}
}
// [END tf-apply]
}
}

0 comments on commit 6b3d3ea

Please sign in to comment.