Skip to content

Add standalone pipeline to rerun the last build of a given Jenkins test job #7649

Description

@sophia-guo

There is no automated standalone mechanism to re-trigger a failed or unstable Jenkins test job externally — for example from a scheduled job, an upstream pipeline, or a remote Jenkins instance. The existing rerun logic is embedded inside JenkinsfileBase and only fires automatically within the same job run.

Solution:

Add buildenv/jenkins/rerunJobs.groovy, a standalone Jenkins declarative pipeline

Parameter Required Description
JOB_NAME ✅ Full Jenkins job name to inspect and rerun
SCM_REFERENCE optional Only proceed if the last build's CUSTOMIZED_SDK_URL contains this substring. When empty, the check is skipped entirely
MODE optional Set to RELAY to forward the rerun to the remote private Jenkins instead of running locally

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions