diff --git a/Jenkinsfile b/Jenkinsfile index 94f2d2f1..e786a24c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,15 +27,6 @@ pipeline { } } - stage('Get Last Commit Details') { - steps { - script{ - String gitCommitMessage = getCommitMessage() - println("GIT CommitMessage: " + gitCommitMessage) - } - } - } - stage('Install') { steps { sh 'composer update' @@ -50,7 +41,11 @@ pipeline { stage('Deploy') { steps { - sh 'vendor/bin/vapor deploy staging --message=""' + script{ + String gitCommitMessage = getCommitMessage() + println("GIT CommitMessage: " + gitCommitMessage) + sh 'vendor/bin/vapor deploy staging --message="${gitCommitMessage}"' + } } } }