Skip to content

Implement a retry mechanism with non-spot instance in jenkinsci/jenkins pipeline #4790

@lemeurherve

Description

@lemeurherve

Service(s)

ci.jenkins.io

Summary

When working on core releases like jenkins-infra/release#744 (or any other core work) and to avoid wasting contributor time, having the retry executed on non-spot instances for Windows (VMs) could improve the process.

In order to reproduce the same mechanism as implemented on ATH (jenkinsci/acceptance-test-harness#1352), new -nonspot agent definitions for maven-<jdk>-windows (with <jdk> = 17 | 21 | 25) should be added to https://github.com/jenkins-infra/jenkins-infra/blob/f670c9fe1caf720c384a21e10d2e3254bf22bc84/hieradata/clients/aws.ci.jenkins.io.yaml#L357 cf https://github.com/jenkinsci/jenkins/blob/65e05c0755125722a8f9dab2af4e20dc879cc633/Jenkinsfile#L66-L69

Reproduction steps

  1. Open a pull request on https://github.com/jenkinsci/jenkins/
  2. Notice the build runs first on Windows spot instances
  3. If the build failed, notice it restarts on the same kind of node/agent than the first time

Having the build restarting on non-spot/"on demand" instances would avoid aborted builds due to spot instance reclaim.

Ref:

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions