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 <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-10 10:30:44 +02:00
parent 369708aa67
commit 018ebc6f47

View file

@ -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]