Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a100cc8b
Commit
a100cc8b
authored
Jan 29, 2021
by
Marcel Amirault
Committed by
Albert Salim
Jan 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update trigger build to fix review apps
parent
a8c61b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
scripts/trigger-build
scripts/trigger-build
+4
-4
No files found.
scripts/trigger-build
View file @
a100cc8b
...
...
@@ -231,7 +231,7 @@ module Trigger
# Remove a remote branch in gitlab-docs.
#
def
cleanup!
Gitlab
.
delete_branch
(
downstream_project_path
,
ref
)
gitlab_client
(
:downstream
)
.
delete_branch
(
downstream_project_path
,
ref
)
puts
"=> Remote branch '
#{
downstream_project_path
}
' deleted"
end
...
...
@@ -275,7 +275,7 @@ module Trigger
end
def
create_remote_branch!
Gitlab
.
create_branch
(
downstream_project_path
,
ref
,
'master'
)
gitlab_client
(
:downstream
)
.
create_branch
(
downstream_project_path
,
ref
,
'master'
)
puts
"=> Remote branch '
#{
ref
}
' created"
rescue
Gitlab
::
Error
::
BadRequest
puts
"=> Remote branch '
#{
ref
}
' already exists!"
...
...
@@ -288,7 +288,7 @@ module Trigger
loop
do
sleep
1
puts
"=> Waiting for pipeline to start..."
pipelines
=
Gitlab
.
pipelines
(
downstream_project_path
,
{
ref:
ref
})
pipelines
=
gitlab_client
(
:downstream
)
.
pipelines
(
downstream_project_path
,
{
ref:
ref
})
break
if
pipelines
.
any?
end
...
...
@@ -296,7 +296,7 @@ module Trigger
pipeline_id
=
pipelines
.
first
.
id
# Cancel the pipeline
Gitlab
.
cancel_pipeline
(
downstream_project_path
,
pipeline_id
)
gitlab_client
(
:downstream
)
.
cancel_pipeline
(
downstream_project_path
,
pipeline_id
)
end
def
display_success_message
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment