Test deployment to vapor with dynamic commit message from git

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