Skip to content

Commit 5e40150

Browse files
authored
Simplify groovy with the map.size()
1 parent 3cdf262 commit 5e40150

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ VERSION=${env.VERSION}-SNAPSHOT""")
197197
archiveArtifacts(artifacts: 'rerun.json')
198198
script {
199199
log(level: 'INFO', text: 'Set description with the number of stage retries to help with the ES queries.')
200-
def numberOfRepeats = rerunStages?.collect { k, v -> return k }?.size
201-
currentBuild.description = "Stage retries: ${numberOfRepeats}"
200+
currentBuild.description = "Stage retries: ${rerunStages?.size()}"
202201
}
203202
// Required to enable the flaky test reporting with GitHub. Workspace exists since the post/always runs earlier
204203
dir("${BASE_DIR}"){

0 commit comments

Comments
 (0)