From ac3f4ce71fcefa280736f1adfcf4e9cd1d6b6552 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sun, 31 Dec 2023 22:15:36 +0800 Subject: [PATCH] Laravel Vapor - Test run command to do housekeeping as part of deployment process --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 57a95ac6..ac9e884f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,7 @@ pipeline { stage('Download source code from Git') { steps { script{ + currentBuild.description = 'Step 1 of 6 Completed' switch(GIT_BRANCH) { case "vapor/production": case "vapor/staging": @@ -37,6 +38,7 @@ pipeline { ) break } + currentBuild.description = 'Step 2 of 6 Completed' } } } @@ -44,12 +46,18 @@ pipeline { stage('Install') { steps { sh 'composer update' + script{ + currentBuild.description = 'Step 3 of 6 Completed' + } } } stage('Tests') { steps { sh 'vendor/bin/phpunit tests/Unit' + script{ + currentBuild.description = 'Step 4 of 6 Completed' + } } } @@ -73,6 +81,7 @@ pipeline { sh "vendor/bin/vapor deploy development --message='${gitCommitMessage}'" break } + currentBuild.description = 'Step 5 of 6 Completed' } } } @@ -85,6 +94,7 @@ pipeline { } catch (Exception e) { echo "Error during cleanup: ${e.message}" } + currentBuild.description = 'Step 6 of 6 Completed' } } }