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
+2
-11
@@ -31,17 +31,8 @@ pipeline {
|
||||
steps {
|
||||
script{
|
||||
String gitCommitMessage = getCommitMessage()
|
||||
env.GIT_COMMIT_MESSAGE = gitCommitMessage
|
||||
println("GIT CommitMessage: " + gitCommitMessage)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Get Commit Message for Deployment') {
|
||||
steps {
|
||||
script {
|
||||
sh 'echo $PATH'
|
||||
env.GIT_COMMIT_MSG = sh (script: '/usr/bin/git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,7 +51,7 @@ pipeline {
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh 'vendor/bin/vapor deploy staging --message="Commit: ${GIT_COMMIT}"'
|
||||
sh 'vendor/bin/vapor deploy staging --message="${env.GIT_COMMIT_MESSAGE}"'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user