mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Test deployment to vapor with dynamic commit message from git
This commit is contained in:
Vendored
+5
-10
@@ -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}"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user