From 4ec32b3c2dd906e7d116beb659d836382f26b7a7 Mon Sep 17 00:00:00 2001 From: Petter Abrahamsson Date: Thu, 4 Oct 2018 22:36:33 -0400 Subject: [PATCH] Add promt for promotion to prod, fixes #37 --- basic-spring-boot/Jenkinsfile | 7 +++++++ multi-cluster-spring-boot/Jenkinsfile | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/basic-spring-boot/Jenkinsfile b/basic-spring-boot/Jenkinsfile index 97d0ef1e..8b711e26 100644 --- a/basic-spring-boot/Jenkinsfile +++ b/basic-spring-boot/Jenkinsfile @@ -128,6 +128,13 @@ pipeline { } } } + stage('Promotion gate') { + steps { + script { + input message: 'Promote application to Production?' + } + } + } stage('Promote from Stage to Prod') { steps { script { diff --git a/multi-cluster-spring-boot/Jenkinsfile b/multi-cluster-spring-boot/Jenkinsfile index f3a0e106..f7908f75 100644 --- a/multi-cluster-spring-boot/Jenkinsfile +++ b/multi-cluster-spring-boot/Jenkinsfile @@ -83,6 +83,14 @@ pipeline { } } + stage('Promotion gate') { + steps { + script { + input message: 'Promote application to Production?' + } + } + } + stage('Promote to Prod') { agent { kubernetes {