Skip to content

Commit

Permalink
not nil retry
Browse files Browse the repository at this point in the history
  • Loading branch information
bootjp committed Apr 6, 2021
1 parent 0d323d7 commit 2bb69df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func IsConsecutiveFailJob(job *gojenkins.Job) (bool, error) {
}

build, err := job.GetBuild(buildId.Number)
if err != nil {
if err != nil && build == nil {
logger.Println("got err GetBuild")
logger.Println(err)
logger.Println(build, job.GetName(), buildIds)
Expand Down

0 comments on commit 2bb69df

Please sign in to comment.