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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
62f115dd
Commit
62f115dd
authored
Aug 03, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce execute_hooks_unless_ci_skipped
parent
020ea32e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+6
-3
No files found.
app/models/ci/pipeline.rb
View file @
62f115dd
...
@@ -18,6 +18,7 @@ module Ci
...
@@ -18,6 +18,7 @@ module Ci
# Invalidate object and save if when touched
# Invalidate object and save if when touched
after_touch
:update_state
after_touch
:update_state
after_touch
:execute_hooks_unless_ci_skipped
after_save
:keep_around_commits
after_save
:keep_around_commits
# ref can't be HEAD or SHA, can only be branch/tag name
# ref can't be HEAD or SHA, can only be branch/tag name
...
@@ -237,9 +238,11 @@ module Ci
...
@@ -237,9 +238,11 @@ module Ci
self
.
started_at
=
statuses
.
started_at
self
.
started_at
=
statuses
.
started_at
self
.
finished_at
=
statuses
.
finished_at
self
.
finished_at
=
statuses
.
finished_at
self
.
duration
=
statuses
.
latest
.
duration
self
.
duration
=
statuses
.
latest
.
duration
saved
=
save
save
execute_hooks
if
saved
&&
!
skip_ci?
end
saved
def
execute_hooks_unless_ci_skipped
execute_hooks
unless
skip_ci?
end
end
def
execute_hooks
def
execute_hooks
...
...
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