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
1fdafbb2
Commit
1fdafbb2
authored
Nov 29, 2019
by
Gaetan Semet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add allow failure in pipeline event
Signed-off-by:
Gaetan Semet
<
gaetan.semet@renault.com
>
parent
0931b281
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
changelogs/unreleased/20978-add-allow-failure-in-pipeline-event.yaml
...unreleased/20978-add-allow-failure-in-pipeline-event.yaml
+6
-0
doc/user/project/integrations/webhooks.md
doc/user/project/integrations/webhooks.md
+5
-0
lib/gitlab/data_builder/pipeline.rb
lib/gitlab/data_builder/pipeline.rb
+1
-0
spec/lib/gitlab/data_builder/pipeline_spec.rb
spec/lib/gitlab/data_builder/pipeline_spec.rb
+1
-0
No files found.
changelogs/unreleased/20978-add-allow-failure-in-pipeline-event.yaml
0 → 100644
View file @
1fdafbb2
---
title
:
|
Add allow failure in pipeline webhook event
merge_request
:
20978
author
:
Gaetan Semet
type
:
added
doc/user/project/integrations/webhooks.md
View file @
1fdafbb2
...
...
@@ -1076,6 +1076,7 @@ X-Gitlab-Event: Pipeline Hook
"finished_at"
:
null
,
"when"
:
"manual"
,
"manual"
:
true
,
"allow_failure"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -1097,6 +1098,7 @@ X-Gitlab-Event: Pipeline Hook
"finished_at"
:
null
,
"when"
:
"on_success"
,
"manual"
:
false
,
"allow_failure"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -1123,6 +1125,7 @@ X-Gitlab-Event: Pipeline Hook
"finished_at"
:
"2016-08-12 15:26:29 UTC"
,
"when"
:
"on_success"
,
"manual"
:
false
,
"allow_failure"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -1149,6 +1152,7 @@ X-Gitlab-Event: Pipeline Hook
"finished_at"
:
"2016-08-12 15:25:26 UTC"
,
"when"
:
"on_success"
,
"manual"
:
false
,
"allow_failure"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -1175,6 +1179,7 @@ X-Gitlab-Event: Pipeline Hook
"finished_at"
:
null
,
"when"
:
"on_success"
,
"manual"
:
false
,
"allow_failure"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
lib/gitlab/data_builder/pipeline.rb
View file @
1fdafbb2
...
...
@@ -61,6 +61,7 @@ module Gitlab
finished_at:
build
.
finished_at
,
when:
build
.
when
,
manual:
build
.
action?
,
allow_failure:
build
.
allow_failure
,
user:
build
.
user
.
try
(
:hook_attrs
),
runner:
build
.
runner
&&
runner_hook_attrs
(
build
.
runner
),
artifacts_file:
{
...
...
spec/lib/gitlab/data_builder/pipeline_spec.rb
View file @
1fdafbb2
...
...
@@ -34,6 +34,7 @@ describe Gitlab::DataBuilder::Pipeline do
expect
(
build_data
).
to
be_a
(
Hash
)
expect
(
build_data
[
:id
]).
to
eq
(
build
.
id
)
expect
(
build_data
[
:status
]).
to
eq
(
build
.
status
)
expect
(
build_data
[
:allow_failure
]).
to
eq
(
build
.
allow_failure
)
expect
(
project_data
).
to
eq
(
project
.
hook_attrs
(
backward:
false
))
expect
(
data
[
:merge_request
]).
to
be_nil
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