Skip to content

Commit

Permalink
fix(jenkins): Using null breaks the cache mechanism (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
JHeilCoveo authored May 11, 2021
1 parent ef6173b commit f61b499
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ class BuildController {
HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE)).split('/').drop(4).join('/')

String pendingKey = computePendingBuildKey(master, job, requestParams, startTime)
String buildNumber = null
// Initializing buildNumber to null will get it silently casted to "null" down the line
String buildNumber = ""

PendingOperationsCache.OperationState pendingStatus = pendingOperationsCache.getAndSetOperationStatus(pendingKey, PendingOperationsCache.OperationStatus.PENDING, "")
if (pendingStatus.status == PendingOperationsCache.OperationStatus.PENDING) {
Expand Down

0 comments on commit f61b499

Please sign in to comment.