diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-28 09:09:41 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-28 09:09:41 +0000 |
commit | 829e846dd576e3443e2f09f37d7c3963cecf4e51 (patch) | |
tree | c081187efcea6cb3f6b8802652f87c71cca8a8d3 /scripts/trigger-build | |
parent | c7bdf2532145e8f36a26685ed83fc8e5aaf7f31f (diff) | |
download | gitlab-ce-829e846dd576e3443e2f09f37d7c3963cecf4e51.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/trigger-build')
-rwxr-xr-x | scripts/trigger-build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/trigger-build b/scripts/trigger-build index cfaccaf4fe3..7fc550d86ee 100755 --- a/scripts/trigger-build +++ b/scripts/trigger-build @@ -274,6 +274,8 @@ module Trigger def create_remote_branch! Gitlab.create_branch(downstream_project_path, ref, 'master') puts "=> Remote branch '#{ref}' created" + rescue Gitlab::Error::BadRequest + puts "=> Remote branch '#{ref}' already exists!" end def cancel_latest_pipeline! @@ -292,8 +294,6 @@ module Trigger # Cancel the pipeline Gitlab.cancel_pipeline(downstream_project_path, pipeline_id) - rescue Gitlab::Error::BadRequest - puts "=> Remote branch '#{ref}' already exists!" end def display_success_message |