Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option/property in a job to rerun this job if it failed #467

Open
BigNuoLi opened this issue Feb 22, 2021 · 0 comments
Open

Add an option/property in a job to rerun this job if it failed #467

BigNuoLi opened this issue Feb 22, 2021 · 0 comments

Comments

@BigNuoLi
Copy link
Contributor

Add an new option in the infrabox job options list to rerun this job if it failed.

Here is an example infrabox.json file,

{
"version": 1,
"jobs": [{
"type": "docker",
"name": "retest",
"resources": { "limits": { "cpu": 1, "memory": 1024 } },
"build_only": false,
"docker_file": "Dockerfile",
"retry": "1"
}]
}

when "retry" = 0, infrabox works as before.
when "retry" = N, infrabox will rerun the job "retest" N times if the prior execution of this job failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant