Skip to content
Snippets Groups Projects
Commit 28bf0065 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

retrigger: add job states to log message

parent fd742017
No related branches found
No related tags found
1 merge request!196ci-test: add job to check for correct foo branch
......@@ -84,17 +84,18 @@ def main():
retry_transient_errors=True,
)
try:
states = ["success", "running"]
jobs = retrigger_pipeline_jobs(
project,
pipeline,
args.job,
["success", "running"],
states,
include_children=True,
)
if not jobs:
print(
"Could not find any jobs named '%s' in %s"
% (args.job, pipeline.web_url)
"Could not find any jobs named '%s' with states %s in %s"
% (args.job, states, pipeline.web_url)
)
except GitlabJobRetryError as e:
print(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment