Skip to content
Snippets Groups Projects
Commit 6afea3bb authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[ci] use generator over list

parent 16dea541
No related branches found
No related tags found
1 merge request!2659[ci] make pipeline search more robust
Pipeline #4785 waiting for manual action
...@@ -103,8 +103,7 @@ elif args['look_for'] == 'latest': ...@@ -103,8 +103,7 @@ elif args['look_for'] == 'latest':
elif args['look_for'] == 'latest-merge': elif args['look_for'] == 'latest-merge':
commits = runCommand('git rev-list HEAD').split('\n') commits = runCommand('git rev-list HEAD').split('\n')
commits = [c for c in commits if isMergeCommit(c)] pipeLine = findPipeline(filter(lambda c: isMergeCommit(c), commits))
pipeLine = findPipeline(commits)
if pipeLine is not None: if pipeLine is not None:
if args['print_format'] == 'pipeline-id': if args['print_format'] == 'pipeline-id':
......
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