Do not ask API server for a Pod during deletion unnecessarily#1304
Do not ask API server for a Pod during deletion unnecessarily#1304Vlatombe merged 2 commits intojenkinsci:masterfrom
Pod during deletion unnecessarily#1304Conversation
| sh 'mvn -B -ntp -Dset.changelist -Dmaven.test.failure.ignore clean install' | ||
| infra.prepareToPublishIncrementals() | ||
| junit 'target/surefire-reports/*.xml' | ||
| retry(count: 3, conditions: [kubernetesAgent(handleNonKubernetes: true), nonresumable()]) { |
There was a problem hiding this comment.
[offtopic] handleNonKubernetes: true feels weird, shouldn't the condition be renamed?
There was a problem hiding this comment.
Well this is to handle the scenario on ci.jenkins.io where we are requesting a label which currently is handled by the kubernetes plugin but admins have left open the possibility of switching to some other cloud if performance merits it.
|
rebuilding |
|
Flake would that cause Related: jenkinsci/workflow-durable-task-step-plugin#180 Prior to that Maybe 15 seconds here is a bit too short considering the 10 seconds delay between retries ? https://github.com/jenkinsci/remoting/blob/952d22bc5673950f53a949b49fbe1427d99324d9/src/main/java/hudson/remoting/Engine.java#L688 |
Probably; trying to make routine tests run in a reasonable amount of time. FYI jenkinsci/workflow-durable-task-step-plugin#284 |
Not tested yet, but hoping this would avoid
Probably the actual deletion would fail later anyway, but why make two API calls when one suffices (assuming you have not actually configured
OnFailure)?