summaryrefslogtreecommitdiff
path: root/scripts/trigger-build
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-28 09:09:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-28 09:09:41 +0000
commit829e846dd576e3443e2f09f37d7c3963cecf4e51 (patch)
treec081187efcea6cb3f6b8802652f87c71cca8a8d3 /scripts/trigger-build
parentc7bdf2532145e8f36a26685ed83fc8e5aaf7f31f (diff)
downloadgitlab-ce-829e846dd576e3443e2f09f37d7c3963cecf4e51.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/trigger-build')
-rwxr-xr-xscripts/trigger-build4
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