Skip to content

Commit

Permalink
Always update the status on gitlabCI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-flam committed Sep 6, 2020
1 parent a39cdcd commit 79d7305
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qaboard/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ def batch(ctx, batches, batches_files, tuning_search_dict, tuning_search_file, n
)

from .gitlab import gitlab_token, update_gitlab_status
always_update = getenvs(('QATOOLS_ALWAYS_UPDATE_GITLAB', 'QA_ALWAYS_UPDATE_GITLAB'))
if gitlab_token and jobs and is_ci and (ctx.obj['batch_label']=='default' or always_update):
if gitlab_token and jobs and is_ci:
update_gitlab_status(commit_id, 'failed' if is_failed else 'success', ctx.obj["batch_label"], f"{len(jobs)} results")

if is_failed and not no_wait:
Expand Down

0 comments on commit 79d7305

Please sign in to comment.