From 820d5e022f1d2ca0a6d9daeb8f4d3b107b321239 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Thu, 23 Nov 2023 13:20:39 +0800 Subject: [PATCH] Test deployment to vapor with dynamic commit message from git --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } } }