Commit 2d0fe283 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(ci): forcing the shortenShaOne to be 8 chars

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 6e9d1847
......@@ -97,7 +97,7 @@ pipeline {
gitlabMergeRequestLink = gitlabMergeRequestLink.trim()
gitCommittorEmailAddr = env.gitlabUserEmail
shortenShaOne = sh returnStdout: true, script: 'git log -1 --pretty=format:"%h" ' + env.gitlabMergeRequestLastCommit
shortenShaOne = sh returnStdout: true, script: 'git log -1 --pretty=format:"%h" --abbrev=8 ' + env.gitlabMergeRequestLastCommit
shortenShaOne = shortenShaOne.trim()
amf_tag = 'ci-tmp-pr-' + env.gitlabMergeRequestIid + '-' + shortenShaOne
amf_branch = env.gitlabSourceBranch
......@@ -112,7 +112,7 @@ pipeline {
gitCommittorEmailAddr = sh returnStdout: true, script: 'git log -n1 --pretty=format:%ae ${GIT_COMMIT}'
gitCommittorEmailAddr = gitCommittorEmailAddr.trim()
shortenShaOne = sh returnStdout: true, script: 'git log -1 --pretty=format:"%h" ' + env.GIT_COMMIT
shortenShaOne = sh returnStdout: true, script: 'git log -1 --pretty=format:"%h" --abbrev=8 ' + env.GIT_COMMIT
shortenShaOne = shortenShaOne.trim()
amf_tag = 'develop-' + shortenShaOne
amf_branch = env.GIT_COMMIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment