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:
parent
369708aa67
commit
018ebc6f47
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
||||
|
|
Reference in a new issue