mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 05:53:58 +00:00
Test deployment to vapor with dynamic commit message from git
This commit is contained in:
Vendored
+3
-1
@@ -41,7 +41,9 @@ pipeline {
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh 'vendor/bin/vapor deploy staging --message="Test Jenkins"'
|
||||
def commitMessage = sh(script: 'git log -1 --pretty=%B', returnStdout: true).trim()
|
||||
sh "vendor/bin/vapor deploy staging --message='${commitMessage}'"
|
||||
//sh 'vendor/bin/vapor deploy staging --message="Test Jenkins"'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user