Skip to content

Commit 9f04084

Browse files
committed
fix release title in shell script for Jenkinsfile release step
1 parent b9a084a commit 9f04084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ pipeline {
139139
steps {
140140
sh """
141141
echo '${env.GITHUB_API_TOKEN}' | ${GH_TOOL}/bin/gh auth login --with-token
142+
TAG_VERSION_NUMBER=sh("echo ${TAG_NAME} | sed 's/release-//'"), returnStdout: true).trim(),
142143
${GH_TOOL}/bin/gh release create ${TAG_NAME} \
143144
--draft \
144145
--generate-notes \
145-
--title 'WebLogic Image Tool ${TAG_NAME#*-}' \
146+
--title 'WebLogic Image Tool ${TAG_VERSION_NUMBER}' \
146147
--repo https://github.com/oracle/weblogic-image-tool \
147148
installer/target/imagetool.zip
148149
"""

0 commit comments

Comments
 (0)