Commit c1301ee Randy Coulman
authored
File tree 4 files changed +18
-0
lines changed
acceptance/fixtures/endToEnd
4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ job "endToEnd" do |j|
81
81
j.publishers << cppcheck(pattern: "PATTERN")
82
82
j.publishers << email_ext(recipients: %w{fred barney})
83
83
j.publishers << fitnesse(results: "FITNESSE_RESULTS")
84
+ j.publishers << gitlab_notifier(name: "GITLAB", mark_unstable_as_success: true)
84
85
j.publishers << ircbot(notify_start: true)
85
86
j.publishers << junit(results: "RESULTS", keep_long_stdio: false)
86
87
j.publishers << trigger(project: "PROJECT")
Original file line number Diff line number Diff line change 135
135
- barney
136
136
- fitnesse :
137
137
results : FITNESSE_RESULTS
138
+ - gitlab-notifier :
139
+ name : GITLAB
140
+ mark-unstable-as-success : true
138
141
- ircbot :
139
142
notify-start : true
140
143
- junit :
Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ module Publishers
41
41
# @return [Hash] The specification for the component.
42
42
standard_component :fitnesse
43
43
44
+ # @!method gitlab_notifier(options = {})
45
+ # Specify a `gitlab-notifier` publisher for a job.
46
+ #
47
+ # See {https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.gitlab-notifier}.
48
+ #
49
+ # @param options [Hash] The configuration options for the component.
50
+ # @return [Hash] The specification for the component.
51
+ standard_component :gitlab_notifier
52
+
44
53
# @!method ircbot(options = {})
45
54
# Specify an `ircbot` publisher for a job.
46
55
#
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ def test_fitnesse
27
27
assert_equal ( expected , fitnesse ( results : "RESULTS" ) )
28
28
end
29
29
30
+ def test_gitlab_notifier
31
+ expected = { "gitlab-notifier" => { "name" => "NAME" } }
32
+ assert_equal ( expected , gitlab_notifier ( name : "NAME" ) )
33
+ end
34
+
30
35
def test_ircbot
31
36
expected = { "ircbot" => { "notify-start" => true } }
32
37
assert_equal ( expected , ircbot ( notify_start : true ) )
You can’t perform that action at this time.
0 commit comments