fix(e2e-tests): timeout failures during jenkins job checks
* increase retry on job creation to fix failing test `performs backups before pod deletion and restores them even Jenkins status is restarted` * allow retry on error when retrieving finished job to fix failing test `runs kubernetes plugin job successfully`
This commit is contained in:
parent
a0a1a7a84d
commit
dc33f507e7
|
|
@ -30,7 +30,7 @@ func waitForJobCreation(jenkinsClient client.Jenkins, jobID string) {
|
|||
return false, err
|
||||
}
|
||||
return err == nil, err
|
||||
}, time.Minute*3, time.Second*2).Should(BeTrue())
|
||||
}, time.Duration(110)*retryInterval, retryInterval).Should(BeTrue())
|
||||
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -266,9 +266,14 @@ func verifyJobHasBeenRunCorrectly(jenkinsClient jenkinsclient.Jenkins, jobID str
|
|||
|
||||
Eventually(func() (bool, error) {
|
||||
job, err = jenkinsClient.GetJob(context.TODO(), jobID)
|
||||
Expect(err).To(BeNil())
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
build, err = job.GetLastBuild(context.TODO())
|
||||
Expect(err).To(BeNil())
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
By("evaluating correctness of the outcome")
|
||||
return build.IsGood(context.TODO()), err
|
||||
|
|
|
|||
Loading…
Reference in New Issue