diff --git a/buildenv/jenkins/common/pipeline-functions.groovy b/buildenv/jenkins/common/pipeline-functions.groovy index 35a2918a9ef..4a0fc48bb63 100644 --- a/buildenv/jenkins/common/pipeline-functions.groovy +++ b/buildenv/jenkins/common/pipeline-functions.groovy @@ -726,13 +726,13 @@ def setup_pull_request_single_comment(parsedComment) { case ~/.*openj9-openjdk-jdk.*/: // /openj9-openjdk-jdk(-zos)? def tmp_version = ghprbGhRepository.substring(ghprbGhRepository.indexOf('-jdk')+4) - if ("${tmp_version}" == "") { - tmp_version = 'next' - } if (tmp_version.contains('-')) { // Strip off '-zos' tmp_version = tmp_version.substring(0, tmp_version.indexOf('-')) } + if ("${tmp_version}" == "") { + tmp_version = 'next' + } RELEASES.add(tmp_version) minCommentSize = 3 break