Skip to content

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

@BigNuoLi

Description

@BigNuoLi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions