From ceeae419f3bd2bd1f1060d0122db20f595198e08 Mon Sep 17 00:00:00 2001 From: martins6170 <48128652+martins6170@users.noreply.github.com> Date: Tue, 23 Apr 2019 14:47:19 -0400 Subject: [PATCH 1/2] API-1001 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 82a4a3d..fbb5aec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,6 +19,7 @@ pipeline { branch 'test' } steps { + error 'fake error to force failure in test stage/gate' copyArtifacts projectName: '../helloworld-api/development' gateConsumesArtifact file: 'application.sh' } From 83055ef4ddf8e8d870bc380f070de7e14f5c8398 Mon Sep 17 00:00:00 2001 From: martins6170 <48128652+martins6170@users.noreply.github.com> Date: Tue, 23 Apr 2019 14:59:55 -0400 Subject: [PATCH 2/2] API-1001 fix --- Jenkinsfile | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fbb5aec..8b7ef0d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,17 +13,6 @@ pipeline { gateProducesArtifact file: 'application.sh', label: 'Dummy artifact to be consumed by Deploy (master branch) gate' } } - stage('Test') { - when { - beforeAgent true - branch 'test' - } - steps { - error 'fake error to force failure in test stage/gate' - copyArtifacts projectName: '../helloworld-api/development' - gateConsumesArtifact file: 'application.sh' - } - } stage('Deploy') { when { beforeAgent true