mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 06:24:03 +00:00
Test deployment to vapor with dynamic commit message from git
This commit is contained in:
Vendored
+9
-3
@@ -19,13 +19,19 @@ pipeline {
|
||||
stages {
|
||||
stage('Download source code from Git') {
|
||||
steps {
|
||||
scmVars = git(
|
||||
git(
|
||||
url: httpUrl,
|
||||
credentialsId: 'gitlab-jenkins-localhost',
|
||||
branch: 'dillon/34-jenkins-vapor'
|
||||
)
|
||||
commitHash = scmVars.GIT_COMMIT
|
||||
echo commitHash
|
||||
}
|
||||
}
|
||||
|
||||
stage('Get Commit Message for Deployment') {
|
||||
steps {
|
||||
script {
|
||||
env.GIT_COMMIT_MSG = sh (script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user