BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7f270d04
Commit
7f270d04
authored
Oct 04, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not return false in commit status transition
parent
4e4640b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
commit_status.rb
app/models/commit_status.rb
+1
-1
process_pipeline_worker.rb
app/workers/process_pipeline_worker.rb
+2
-3
update_pipeline_worker.rb
app/workers/update_pipeline_worker.rb
+2
-3
No files found.
app/models/commit_status.rb
View file @
7f270d04
...
...
@@ -71,7 +71,7 @@ class CommitStatus < ActiveRecord::Base
after_transition
do
|
commit_status
,
transition
|
commit_status
.
pipeline
.
try
do
|
pipeline
|
return
false
if
transition
.
loopback?
break
if
transition
.
loopback?
if
commit_status
.
complete?
ProcessPipelineWorker
.
perform_async
(
pipeline
.
id
)
...
...
app/workers/process_pipeline_worker.rb
View file @
7f270d04
...
...
@@ -4,8 +4,7 @@ class ProcessPipelineWorker
sidekiq_options
queue: :default
def
perform
(
pipeline_id
)
Ci
::
Pipeline
.
find_by
(
id:
pipeline_id
).
try
do
|
pipeline
|
pipeline
.
process!
end
Ci
::
Pipeline
.
find_by
(
id:
pipeline_id
)
.
try
(
:process!
)
end
end
app/workers/update_pipeline_worker.rb
View file @
7f270d04
...
...
@@ -4,8 +4,7 @@ class UpdatePipelineWorker
sidekiq_options
queue: :default
def
perform
(
pipeline_id
)
Ci
::
Pipeline
.
find_by
(
id:
pipeline_id
).
try
do
|
pipeline
|
pipeline
.
update_status
end
Ci
::
Pipeline
.
find_by
(
id:
pipeline_id
)
.
try
(
:update_status
)
end
end
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