Test deployment to vapor with dynamic commit message from git

This commit is contained in:
Dillon Ngo
2023-11-23 13:20:39 +08:00
parent 73b8cb1760
commit 820d5e022f
Vendored
+2 -1
View File
@@ -30,7 +30,8 @@ pipeline {
stage('get_commit_msg') {
steps {
script {
env.GIT_COMMIT_MSG = sh (script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim()
commit = sh(returnStdout: true, script: 'git log -1 --oneline').trim()
env.GIT_COMMIT_MSG = commit
}
}
}