@@ -5,9 +5,61 @@ module Components
5
5
module Publishers
6
6
extend Macros
7
7
8
- standard_component :archive , :cppcheck , :email_ext , :ircbot , :junit , :trigger
8
+ # @!method archive(options = {})
9
+ # Specify an `archive` component for a job.
10
+ #
11
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.archive}.
12
+ #
13
+ # @param options [Hash] The configuration options for the component.
14
+ # @return [Hash] The specification for the component.
15
+ standard_component :archive
16
+
17
+ # @!method cppcheck(options = {})
18
+ # Specify a `cppcheck` component for a job.
19
+ #
20
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.cppcheck}.
21
+ #
22
+ # @param options [Hash] The configuration options for the component.
23
+ # @return [Hash] The specification for the component.
24
+ standard_component :cppcheck
25
+
26
+ # @!method email_ext(options = {})
27
+ # Specify an `email-ext` component for a job.
28
+ #
29
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.email-ext}.
30
+ #
31
+ # @param options [Hash] The configuration options for the component.
32
+ # @return [Hash] The specification for the component.
33
+ standard_component :email_ext
34
+
35
+ # @!method ircbot(options = {})
36
+ # Specify an `ircbot` component for a job.
37
+ #
38
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.ircbot}.
39
+ #
40
+ # @param options [Hash] The configuration options for the component.
41
+ # @return [Hash] The specification for the component.
42
+ standard_component :ircbot
9
43
10
- # Define an `xunit` component for a job.
44
+ # @!method junit(options = {})
45
+ # Specify a `junit` component for a job.
46
+ #
47
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.junit}.
48
+ #
49
+ # @param options [Hash] The configuration options for the component.
50
+ # @return [Hash] The specification for the component.
51
+ standard_component :junit
52
+
53
+ # @!method trigger(options = {})
54
+ # Specify a `trigger` component for a job.
55
+ #
56
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.trigger}.
57
+ #
58
+ # @param options [Hash] The configuration options for the component.
59
+ # @return [Hash] The specification for the component.
60
+ standard_component :trigger
61
+
62
+ # Specify an `xunit` component for a job.
11
63
#
12
64
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.xunit}.
13
65
#
@@ -24,14 +76,20 @@ module Publishers
24
76
# @param options [Hash] Top-level options for configuring the component.
25
77
# @yieldparam types [Array] An array to which nested test type specifications should be
26
78
# added by the block.
79
+ # @return [Hash] The specification for the component.
27
80
def xunit ( options = { } , &block )
28
81
to_config ( "xunit" , nested_options ( :types , options , &block ) )
29
82
end
30
83
31
- # @!endgroup
32
-
33
84
# @!group xunit Test Types
34
85
86
+ # @!method unittest(options = {})
87
+ # Configure a `unittest` test type for an {#xunit} component.
88
+ #
89
+ # See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.xunit}.
90
+ #
91
+ # @param options [Hash] The configuration options for the test type.
92
+ # @return [Hash] The specification for the test type.
35
93
named_config :unittest
36
94
37
95
end
0 commit comments