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
-4
@@ -24,6 +24,7 @@ pipeline {
|
||||
credentialsId: 'gitlab-jenkins-localhost',
|
||||
branch: 'dillon/34-jenkins-vapor'
|
||||
)
|
||||
env.GIT_COMMIT_MSG = sh (script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,10 +42,7 @@ pipeline {
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
checkout scm
|
||||
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"'
|
||||
sh 'vendor/bin/vapor deploy staging --message=${GIT_COMMIT_MSG}'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user