File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ pipeline {
58
58
steps {
59
59
script {
60
60
// 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()
63
63
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"
65
65
currentBuild. result = ' ABORTED'
66
66
return
67
67
}
You can’t perform that action at this time.
0 commit comments