Test deployment to vapor with dynamic commit message from git

This commit is contained in:
Dillon Ngo
2023-11-23 16:12:05 +08:00
parent 516de92b76
commit a72d1ab7e0
Vendored
+10 -2
View File
@@ -27,6 +27,15 @@ pipeline {
}
}
stage('Get Last Commit Details') {
steps {
script{
String gitCommitMessage = getCommitMessage()
println("GIT CommitMessage: " + gitCommitMessage)
}
}
}
stage('Install') {
steps {
sh 'composer update'
@@ -41,8 +50,7 @@ pipeline {
stage('Deploy') {
steps {
String gitCommitMessage = getCommitMessage()
sh 'vendor/bin/vapor deploy staging --message="${gitCommitMessage}"'
sh 'vendor/bin/vapor deploy staging --message=""'
}
}
}