Skip to content

Commit 79bbd9d

Browse files
committed
HHH-17239 Automate maintenance releases
1 parent ef136ae commit 79bbd9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/release/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ pipeline {
5858
steps {
5959
script {
6060
// Avoid doing a release for commits from a release
61-
def lastCommitter = sh(script: 'git show -s --format=\'%an\'', returnStdout: true)
62-
def secondLastCommitter = sh(script: 'git show -s --format=\'%an\' HEAD~1', returnStdout: true)
61+
def lastCommitter = sh(script: 'git show -s --format=\'%an\'', returnStdout: true).trim()
62+
def secondLastCommitter = sh(script: 'git show -s --format=\'%an\' HEAD~1', returnStdout: true).trim()
6363
if (lastCommitter == 'Hibernate-CI' && secondLastCommitter == 'Hibernate-CI') {
64-
print "INFO: Build skipped because last commits were for the previous release"
64+
print "INFO: Release skipped because last commits were for the previous release"
6565
currentBuild.result = 'ABORTED'
6666
return
6767
}

0 commit comments

Comments
 (0)