mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Laravel Vapor - Test run command to do housekeeping as part of deployment process
This commit is contained in:
Vendored
+6
-5
@@ -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,7 +38,7 @@ pipeline {
|
||||
)
|
||||
break
|
||||
}
|
||||
currentBuild.description = 'Step 1 of 5 Completed'
|
||||
currentBuild.description = 'Step 2 of 6 Completed'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,7 +47,7 @@ pipeline {
|
||||
steps {
|
||||
sh 'composer update'
|
||||
script{
|
||||
currentBuild.description = 'Step 2 of 5 Completed'
|
||||
currentBuild.description = 'Step 3 of 6 Completed'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,7 +56,7 @@ pipeline {
|
||||
steps {
|
||||
sh 'vendor/bin/phpunit tests/Unit'
|
||||
script{
|
||||
currentBuild.description = 'Step 3 of 5 Completed'
|
||||
currentBuild.description = 'Step 4 of 6 Completed'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -80,7 +81,7 @@ pipeline {
|
||||
sh "vendor/bin/vapor deploy development --message='${gitCommitMessage}'"
|
||||
break
|
||||
}
|
||||
currentBuild.description = 'Step 4 of 5 Completed'
|
||||
currentBuild.description = 'Step 5 of 6 Completed'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -93,7 +94,7 @@ pipeline {
|
||||
} catch (Exception e) {
|
||||
echo "Error during cleanup: ${e.message}"
|
||||
}
|
||||
currentBuild.description = 'Step 5 of 5 Completed'
|
||||
currentBuild.description = 'Step 6 of 6 Completed'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user