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 {
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 }
You can’t perform that action at this time.
0 commit comments