Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e9ed61f

Browse files
committedFeb 26, 2018
minor change
1 parent 64a223d commit e9ed61f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/com/example/Library.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ package com.example
22

33
// Add Successful Builds to a Map and return
44
def getSuccessfulBuildsMap(currentBuild) {
5-
def successfulBuilds = [:];
6-
lastSuccessfullBuild(currentBuild.getPreviousBuild(), successfulBuilds)
7-
return successfulBuilds;
5+
def successfulBuilds = lastSuccessfullBuild(currentBuild.getPreviousBuild(), [:])
6+
return successfulBuilds
87
}
98

109
// Reference https://support.cloudbees.com/hc/en-us/articles/217591038-How-to-Iterate-Through-the-Last-Successful-Builds-in-Pipeline-Job

0 commit comments

Comments
 (0)
Failed to load comments.