We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0df4c commit 7274152Copy full SHA for 7274152
src/com/example/Library.groovy
@@ -15,8 +15,8 @@ def getSuccessfulBuildsMap(currentBuild) {
15
private def lastSuccessfullBuild(build, successfulBuilds) {
16
if(build != null){
17
if(build.result == 'SUCCESS') {
18
- def commitHash = getCommitHash(build).substring(0, 7)
19
- successfulBuilds.put(build.number, commitHash) // Short Version of the Hash
+ def commitHash = getCommitHash(build).substring(0, 7) // Short Version of the Hash
+ successfulBuilds.put(build.number, commitHash)
20
}
21
lastSuccessfullBuild(build.getPreviousBuild(), successfulBuilds)
22
}else {
0 commit comments