Loading gitlab_butler/butler.py +10 −4 Original line number Diff line number Diff line Loading @@ -283,10 +283,16 @@ class Butler: ) except GitlabDeleteError as e: # ignore "409 Conflict: Resource lock" error, pipeline will be deleted on next run if e.response_code != 409: print( f"{AnsiColors.BLUE}Error:{AnsiColors.RESET} failed to delete pipeline {pipeline.id} (ref: {AnsiColors.BLUE}{pipeline.ref}{AnsiColors.RESET}) : {e}" ) self.handle_error(e) else: print( f"{AnsiColors.BLUE}Warning:{AnsiColors.RESET} failed to delete pipeline {pipeline.id} (ref: {AnsiColors.BLUE}{pipeline.ref}{AnsiColors.RESET}) : {e}" ) # Cleanup a GitLab project # $1: project to be cleaned Loading Loading
gitlab_butler/butler.py +10 −4 Original line number Diff line number Diff line Loading @@ -283,10 +283,16 @@ class Butler: ) except GitlabDeleteError as e: # ignore "409 Conflict: Resource lock" error, pipeline will be deleted on next run if e.response_code != 409: print( f"{AnsiColors.BLUE}Error:{AnsiColors.RESET} failed to delete pipeline {pipeline.id} (ref: {AnsiColors.BLUE}{pipeline.ref}{AnsiColors.RESET}) : {e}" ) self.handle_error(e) else: print( f"{AnsiColors.BLUE}Warning:{AnsiColors.RESET} failed to delete pipeline {pipeline.id} (ref: {AnsiColors.BLUE}{pipeline.ref}{AnsiColors.RESET}) : {e}" ) # Cleanup a GitLab project # $1: project to be cleaned Loading