From 858eabbc5de811ae71faa11c221cb717fbd858aa Mon Sep 17 00:00:00 2001 From: Ding-Yi Chen Date: Wed, 25 Jul 2018 15:12:33 +1000 Subject: [PATCH] fix(maven-release): release-notes of RC should contain the issues in final version --- jenkins/maven-Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/maven-Jenkinsfile b/jenkins/maven-Jenkinsfile index bbcc45d..4a07cde 100644 --- a/jenkins/maven-Jenkinsfile +++ b/jenkins/maven-Jenkinsfile @@ -160,10 +160,10 @@ timestamps { ).trim() if (releaseNotesFile){ stage('ReleaseNotes') { - String releaseNoteVersion = releaseVersion.replaceAll(/[-.]/, '') + String releaseNoteVersion = releaseVersion.replaceAll(/-.*/, '') echo "releaseNoteVersion: $releaseNoteVersion" def releaseNoteStatus = sh(returnStatus: true, - script: "bash $WORKSPACE/zanata-release-notes-prepend -j $artifactId $releaseVersion", + script: "bash $WORKSPACE/zanata-release-notes-prepend -j $artifactId $releaseNoteVersion", ) echo "releaseNoteStatus: $releaseNoteStatus" switch(releaseNoteStatus) {