Test deployment to vapor with dynamic commit message from git

This commit is contained in:
Dillon Ngo
2023-11-23 15:15:44 +08:00
parent 8695756725
commit 56b46afee1
Vendored
+2 -1
View File
@@ -30,6 +30,7 @@ pipeline {
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()
}
}
@@ -49,7 +50,7 @@ pipeline {
stage('Deploy') {
steps {
sh 'vendor/bin/vapor deploy staging --message="Test Jenkins"'
sh 'vendor/bin/vapor deploy staging --message="Commit: ${GIT_COMMIT}"'
}
}