From 018ebc6f47b70a34b7cfd2e2ae8809f3a52c8516 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 10 2018 08:30:47 +0000 Subject: If we exit with a code != 0 the worker gets stopped... So keep this only for the last resort Signed-off-by: Pierre-Yves Chibon --- diff --git a/playbooks/roles/flag_build_commits/files/flag_commit_build.py b/playbooks/roles/flag_build_commits/files/flag_commit_build.py index ed9664f..b693228 100644 --- a/playbooks/roles/flag_build_commits/files/flag_commit_build.py +++ b/playbooks/roles/flag_build_commits/files/flag_commit_build.py @@ -104,11 +104,11 @@ def main(msg): print( 'No git url found in the extra information: %s' % build.get('extra')) - return 1 + return if '#' not in git_url: print('No # in the git_url: %s' % git_url) - return 1 + return commit = git_url.rsplit('#', 1)[1]