From 6b3d3ea7852e06fc9cf191536c7535a0b0b0ff30 Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Tue, 31 Mar 2020 13:29:41 -0700 Subject: [PATCH] added comments in jenkinsfile for start and end of each stage --- example-pipelines/environments/Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example-pipelines/environments/Jenkinsfile b/example-pipelines/environments/Jenkinsfile index ea0104e5..bd811675 100644 --- a/example-pipelines/environments/Jenkinsfile +++ b/example-pipelines/environments/Jenkinsfile @@ -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 { @@ -52,6 +53,9 @@ pipeline { } } } + // [END tf-init, tf-validate] + + // [START tf-plan] stage('TF plan') { when { anyOf {branch "prod";branch "dev";changeRequest() } } steps { @@ -83,6 +87,9 @@ pipeline { } } } + // [END tf-plan] + + // [START tf-apply] stage('TF Apply') { when { anyOf {branch "prod";branch "dev" } } steps { @@ -101,5 +108,6 @@ pipeline { } } } + // [END tf-apply] } }