From 976d87284df6cea5f65a5ad4fa9d969fb47d4977 Mon Sep 17 00:00:00 2001 From: Rendra Suroso Date: Tue, 28 Jul 2020 08:05:14 +0700 Subject: [PATCH] Add 'release' stage on Jenkinsfile. --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8015be9..26fc80d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,20 @@ pipeline { branch 'master' } steps { - sh 'docker-phpunit -u 7.0 7.4' + sh 'docker-phpunit 7.0 7.4' + } + post { + success { + sh 'jenkins-postproc' + } + } + } + stage('release') { + when { + tag '*' + } + steps { + sh 'docker-phpunit 7.0 7.4' } post { success {