diff --git a/Jenkinsfile b/Jenkinsfile index fe71cf46..0c6b1422 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }