jujube 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/acceptance/fixtures/endToEnd/endToEnd.job +1 -0
- data/acceptance/fixtures/endToEnd/expected.yml +2 -0
- data/lib/jujube/components/publishers.rb +17 -8
- data/lib/jujube/components/scm.rb +1 -1
- data/lib/jujube/components/triggers.rb +4 -4
- data/lib/jujube/components/wrappers.rb +2 -2
- data/lib/jujube/version.rb +1 -1
- data/test/components/publishers_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8f855ccc784d45006735ead034d03422bd2c1e9
|
4
|
+
data.tar.gz: 2e823852d1e1f462189a5fc5df5d3f5f6aba1112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849562743f56489c8433dfb2513685c01ac344297ffe9fde49c87fbf982d8f2113a533d4ba2692b643f58b87bca69c7cfcc8f500ed737c4fe2e926d94d7a67b8
|
7
|
+
data.tar.gz: db505d835268a4c65d4a827df17da2f22fa4cee231f8a451f2bc421aa55eae9b72e39ef91161076d0618a2b1aee8cbf6f8c186a54cc733f81d455490ee94e076
|
@@ -41,6 +41,7 @@ job "endToEnd" do |j|
|
|
41
41
|
j.publishers << archive(artifacts: "ARTIFACTS", latest_only: true, allow_empty: true)
|
42
42
|
j.publishers << cppcheck(pattern: "PATTERN")
|
43
43
|
j.publishers << email_ext(recipients: %w{fred barney})
|
44
|
+
j.publishers << fitnesse(results: "FITNESSE_RESULTS")
|
44
45
|
j.publishers << ircbot(notify_start: true)
|
45
46
|
j.publishers << junit(results: "RESULTS", keep_long_stdio: false)
|
46
47
|
j.publishers << trigger(project: "PROJECT")
|
@@ -6,7 +6,7 @@ module Jujube
|
|
6
6
|
extend Macros
|
7
7
|
|
8
8
|
# @!method archive(options = {})
|
9
|
-
# Specify an `archive`
|
9
|
+
# Specify an `archive` publisher for a job.
|
10
10
|
#
|
11
11
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.archive}.
|
12
12
|
#
|
@@ -15,7 +15,7 @@ module Jujube
|
|
15
15
|
standard_component :archive
|
16
16
|
|
17
17
|
# @!method cppcheck(options = {})
|
18
|
-
# Specify a `cppcheck`
|
18
|
+
# Specify a `cppcheck` publisher for a job.
|
19
19
|
#
|
20
20
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.cppcheck}.
|
21
21
|
#
|
@@ -24,7 +24,7 @@ module Jujube
|
|
24
24
|
standard_component :cppcheck
|
25
25
|
|
26
26
|
# @!method email_ext(options = {})
|
27
|
-
# Specify an `email-ext`
|
27
|
+
# Specify an `email-ext` publisher for a job.
|
28
28
|
#
|
29
29
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.email-ext}.
|
30
30
|
#
|
@@ -32,8 +32,17 @@ module Jujube
|
|
32
32
|
# @return [Hash] The specification for the component.
|
33
33
|
standard_component :email_ext
|
34
34
|
|
35
|
+
# @!method fitnesse(options = {})
|
36
|
+
# Specify a `fitnesse` publisher for a job.
|
37
|
+
#
|
38
|
+
# This publisher requires support in jenkins-job-builder that has not yet been submitted.
|
39
|
+
#
|
40
|
+
# @param options [Hash] The configuration options for the component.
|
41
|
+
# @return [Hash] The specification for the component.
|
42
|
+
standard_component :fitnesse
|
43
|
+
|
35
44
|
# @!method ircbot(options = {})
|
36
|
-
# Specify an `ircbot`
|
45
|
+
# Specify an `ircbot` publisher for a job.
|
37
46
|
#
|
38
47
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.ircbot}.
|
39
48
|
#
|
@@ -42,7 +51,7 @@ module Jujube
|
|
42
51
|
standard_component :ircbot
|
43
52
|
|
44
53
|
# @!method junit(options = {})
|
45
|
-
# Specify a `junit`
|
54
|
+
# Specify a `junit` publisher for a job.
|
46
55
|
#
|
47
56
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.junit}.
|
48
57
|
#
|
@@ -51,7 +60,7 @@ module Jujube
|
|
51
60
|
standard_component :junit
|
52
61
|
|
53
62
|
# @!method trigger(options = {})
|
54
|
-
# Specify a `trigger`
|
63
|
+
# Specify a `trigger` publisher for a job.
|
55
64
|
#
|
56
65
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.trigger}.
|
57
66
|
#
|
@@ -59,7 +68,7 @@ module Jujube
|
|
59
68
|
# @return [Hash] The specification for the component.
|
60
69
|
standard_component :trigger
|
61
70
|
|
62
|
-
# Specify an `xunit`
|
71
|
+
# Specify an `xunit` publisher for a job.
|
63
72
|
#
|
64
73
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.xunit}.
|
65
74
|
#
|
@@ -84,7 +93,7 @@ module Jujube
|
|
84
93
|
# @!group xunit Test Types
|
85
94
|
|
86
95
|
# @!method unittest(options = {})
|
87
|
-
# Configure a `unittest` test type for an {#xunit}
|
96
|
+
# Configure a `unittest` test type for an {#xunit} publisher.
|
88
97
|
#
|
89
98
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.xunit}.
|
90
99
|
#
|
@@ -16,7 +16,7 @@ module Jujube
|
|
16
16
|
|
17
17
|
# Specify a `store` SCM for a job.
|
18
18
|
#
|
19
|
-
# This
|
19
|
+
# This SCM requires support in jenkins-job-builder that has not yet been merged.
|
20
20
|
# See {https://review.openstack.org/85729} for the patch.
|
21
21
|
#
|
22
22
|
# `store` can watch multiple pundles (packages or bundles) The specification for each
|
@@ -62,14 +62,14 @@ module Jujube
|
|
62
62
|
# @!group pollurl Content Types
|
63
63
|
|
64
64
|
# Configure a simple content check inside a {#url} specification of a
|
65
|
-
# {#pollurl}
|
65
|
+
# {#pollurl} trigger.
|
66
66
|
# @return [Hash] The specification for the content type.
|
67
67
|
def simple
|
68
68
|
{"simple" => true}
|
69
69
|
end
|
70
70
|
|
71
71
|
# Configure a JSON content check inside a {#url} specification of a
|
72
|
-
# {#pollurl}
|
72
|
+
# {#pollurl} trigger.
|
73
73
|
#
|
74
74
|
# @param paths [String...] Zero or more JSONPath expressions. Only changes to
|
75
75
|
# the parts of the JSON response that match one of the `paths` will trigger a build.
|
@@ -79,7 +79,7 @@ module Jujube
|
|
79
79
|
end
|
80
80
|
|
81
81
|
# Configure an XML content check inside a {#url} specification of a
|
82
|
-
# {#pollurl}
|
82
|
+
# {#pollurl} trigger.
|
83
83
|
#
|
84
84
|
# @param xpaths [String...] Zero or more XPath expressions. Only changes to
|
85
85
|
# the parts of the XML response that match one of the `xpaths` will trigger a build.
|
@@ -89,7 +89,7 @@ module Jujube
|
|
89
89
|
end
|
90
90
|
|
91
91
|
# Configure a text content check inside a {#url} specification of a
|
92
|
-
# {#pollurl}
|
92
|
+
# {#pollurl} trigger.
|
93
93
|
#
|
94
94
|
# @param regexes [String...] Zero or more regular expressions. Only changes to
|
95
95
|
# the parts of the text response that match one of the `regexes` will trigger a build.
|
@@ -6,7 +6,7 @@ module Jujube
|
|
6
6
|
extend Macros
|
7
7
|
|
8
8
|
# @!method timeout(options = {})
|
9
|
-
# Specify a `timeout`
|
9
|
+
# Specify a `timeout` wrapper for a job.
|
10
10
|
#
|
11
11
|
# See {http://ci.openstack.org/jenkins-job-builder/publishers.html#wrappers.timeout}.
|
12
12
|
#
|
@@ -14,7 +14,7 @@ module Jujube
|
|
14
14
|
# @return [Hash] The specification for the component.
|
15
15
|
standard_component :timeout
|
16
16
|
|
17
|
-
# Specify a `timestamps`
|
17
|
+
# Specify a `timestamps` wrapper for a job.
|
18
18
|
#
|
19
19
|
# See {http://ci.openstack.org/jenkins-job-builder/wrappers.html#wrappers.timestamps}.
|
20
20
|
#
|
data/lib/jujube/version.rb
CHANGED
@@ -48,4 +48,9 @@ class PublishersTest < Minitest::Test
|
|
48
48
|
expected = {"trigger" => {"project" => "PROJECT"}}
|
49
49
|
assert_equal(expected, trigger(project: "PROJECT"))
|
50
50
|
end
|
51
|
+
|
52
|
+
def test_fitnesse
|
53
|
+
expected = {"fitnesse" => {"results" => "RESULTS"}}
|
54
|
+
assert_equal(expected, fitnesse(results: "RESULTS"))
|
55
|
+
end
|
51
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jujube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Randy Coulman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|