jujube 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +11 -6
- data/CHANGELOG.md +27 -6
- data/README.md +2 -1
- data/acceptance/fixtures/endToEnd/endToEnd.job +1 -1
- data/acceptance/fixtures/endToEnd/expected.yml +3 -1
- data/jujube.gemspec +1 -1
- data/lib/jujube/components/builders.rb +1 -1
- data/lib/jujube/components/parameters.rb +3 -3
- data/lib/jujube/components/properties.rb +2 -2
- data/lib/jujube/components/publishers.rb +9 -9
- data/lib/jujube/components/scm.rb +2 -2
- data/lib/jujube/components/triggers.rb +8 -8
- data/lib/jujube/components/wrappers.rb +2 -2
- data/lib/jujube/job.rb +16 -16
- data/lib/jujube/version.rb +1 -1
- data/test/components/triggers_test.rb +8 -1
- data/test/driver_test.rb +1 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a93daba9cc8d6302ae5cf0df9ade6a415405804
|
|
4
|
+
data.tar.gz: a2a5390ec3062f5016d78c3d8b9d539ce679d8be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 184ac4698dafbd082ad8cdd17e47554f7f179fb7936b39875e635348179eabf08c843f45ad18e31e27e56e04f3f424d920530ccbf064f47c99a5dbb9d1abbe1f
|
|
7
|
+
data.tar.gz: 9b410b8795b126e6ab4c73317f612aef264af70acd5cf44ad04b978903327f01ff1307180b1d97bcf62b6827d6e89d1eacee18c8f25cb8b7895ec55b5c681f9f
|
data/.travis.yml
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
language: ruby
|
|
2
2
|
rvm:
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
- 2.
|
|
6
|
-
-
|
|
7
|
-
- jruby-
|
|
8
|
-
-
|
|
3
|
+
- 2.3.0
|
|
4
|
+
- 2.2.4
|
|
5
|
+
- 2.1.10
|
|
6
|
+
- ruby-head
|
|
7
|
+
- jruby-9
|
|
8
|
+
- jruby-head
|
|
9
|
+
- rbx-2
|
|
10
|
+
matrix:
|
|
11
|
+
allow_failures:
|
|
12
|
+
- jruby-9
|
|
13
|
+
- jruby-head
|
|
9
14
|
script: "bundle exec rake"
|
data/CHANGELOG.md
CHANGED
|
@@ -5,8 +5,27 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased][unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.11.0][0.11.0]
|
|
9
|
+
|
|
10
|
+
### Breaking Changes
|
|
11
|
+
|
|
12
|
+
* The `pollscm` component has been updated to conform to the new API in jenkins-job-builder 1.3.0 and later. See http://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.pollscm for details of the change. If you need to use the `pollscm` component and older versions of jenkins-job-builder, then stick with version 0.10.0 or earlier of Jujube.
|
|
13
|
+
|
|
14
|
+
* With this release, we are no longer officially supporting Ruby versions less than 2.1. Previous versions of Ruby are [considered end-of-life (EOL)](https://www.ruby-lang.org/en/downloads/) by the Ruby core team.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
* Link to the documentation for the `pollurl` trigger that has new been merged into jenkins-job-builder.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
* The jenkins-job-builder documentation has moved to a new location, so all documentation links (including within this CHANGELOG) have been updated.
|
|
23
|
+
|
|
24
|
+
## [0.10.0][0.10.0]
|
|
25
|
+
|
|
8
26
|
### Added
|
|
9
27
|
|
|
28
|
+
* Support the `priority_sorter` property. (see http://docs.openstack.org/infra/jenkins-job-builder/properties.html#properties.priority-sorter).
|
|
10
29
|
* Links to documentation for the `fitnesse` publisher and `store` SCM that have now been merged into jenkins-job-builder.
|
|
11
30
|
* This CHANGELOG.
|
|
12
31
|
|
|
@@ -15,17 +34,17 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
|
15
34
|
### Added
|
|
16
35
|
|
|
17
36
|
* Support the `disabled` job attribute
|
|
18
|
-
(see http://
|
|
37
|
+
(see http://docs.openstack.org/infra/jenkins-job-builder/general.html).
|
|
19
38
|
|
|
20
39
|
## [0.8.0][0.8.0] - 2014-10-29
|
|
21
40
|
|
|
22
|
-
* Support the `throttle` job property (see http://
|
|
41
|
+
* Support the `throttle` job property (see http://docs.openstack.org/infra/jenkins-job-builder/properties.html#properties.throttle).
|
|
23
42
|
|
|
24
43
|
## [0.7.0][0.7.0] - 2014-10-28
|
|
25
44
|
|
|
26
45
|
### Added
|
|
27
46
|
|
|
28
|
-
* Support the `reverse` trigger (see http://
|
|
47
|
+
* Support the `reverse` trigger (see http://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.reverse).
|
|
29
48
|
|
|
30
49
|
## [0.6.0][0.6.0] - 2014-08-25
|
|
31
50
|
|
|
@@ -37,13 +56,13 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
|
37
56
|
|
|
38
57
|
### Added
|
|
39
58
|
|
|
40
|
-
* Support the `fitnesse` publisher (see http://
|
|
59
|
+
* Support the `fitnesse` publisher (see http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.fitnesse).
|
|
41
60
|
|
|
42
61
|
## [0.5.1][0.5.1] - 2014-04-07
|
|
43
62
|
|
|
44
63
|
### Added
|
|
45
64
|
|
|
46
|
-
* Support the `store` SCM (see http://
|
|
65
|
+
* Support the `store` SCM (see http://docs.openstack.org/infra/jenkins-job-builder/scm.html#scm.store).
|
|
47
66
|
|
|
48
67
|
## [0.5.0][0.5.0] - 2014-03-28
|
|
49
68
|
|
|
@@ -51,7 +70,9 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
|
51
70
|
|
|
52
71
|
* Initial public release.
|
|
53
72
|
|
|
54
|
-
[unreleased]: https://github.com/randycoulman/jujube/compare/v0.
|
|
73
|
+
[unreleased]: https://github.com/randycoulman/jujube/compare/v0.11.0...HEAD
|
|
74
|
+
[0.11.0]: https://github.com/randycoulman/jujube/compare/v0.10.0...v0.11.0
|
|
75
|
+
[0.10.0]: https://github.com/randycoulman/jujube/compare/v0.9.0...v0.10.0
|
|
55
76
|
[0.9.0]: https://github.com/randycoulman/jujube/compare/v0.8.0...v0.9.0
|
|
56
77
|
[0.8.0]: https://github.com/randycoulman/jujube/compare/v0.7.0...v0.8.0
|
|
57
78
|
[0.7.0]: https://github.com/randycoulman/jujube/compare/v0.6.0...v0.7.0
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](http://badge.fury.io/rb/jujube)
|
|
4
4
|
[](https://travis-ci.org/randycoulman/jujube)
|
|
5
5
|
[](https://codeclimate.com/github/randycoulman/jujube)
|
|
6
|
+

|
|
6
7
|
|
|
7
8
|
**Jujube** is a Ruby front-end for
|
|
8
9
|
[jenkins-job-builder](https://github.com/openstack-infra/jenkins-job-builder).
|
|
@@ -120,7 +121,7 @@ uses of all of the supported attributes, sections, and components.
|
|
|
120
121
|
|
|
121
122
|
In general, component options are typically specified as standard Ruby hashes. The option
|
|
122
123
|
names are the same as in the
|
|
123
|
-
[jenkins-job-builder documentation](http://
|
|
124
|
+
[jenkins-job-builder documentation](http://docs.openstack.org/infra/jenkins-job-builder/),
|
|
124
125
|
except that you need to use underscores (`_`) instead of dashes (`-`) in the option names.
|
|
125
126
|
|
|
126
127
|
### Helper Methods
|
|
@@ -23,7 +23,7 @@ job "endToEnd" do |j|
|
|
|
23
23
|
pundles << package("PACKAGE") << bundle("BUNDLE")
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
j.triggers << pollscm("INTERVAL")
|
|
26
|
+
j.triggers << pollscm(cron: "INTERVAL", ignore_post_commit_hooks: true)
|
|
27
27
|
j.triggers << pollurl(cron: "CRON", polling_node: "NODE") do |urls|
|
|
28
28
|
urls << url("URL",
|
|
29
29
|
proxy: false,
|
data/jujube.gemspec
CHANGED
|
@@ -24,6 +24,6 @@ EOF
|
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
|
25
25
|
spec.add_development_dependency "rake", "~> 10.1"
|
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.3"
|
|
27
|
-
spec.add_development_dependency "flexmock", "~>
|
|
27
|
+
spec.add_development_dependency "flexmock", "~> 2.0"
|
|
28
28
|
spec.add_development_dependency "yard", "~>0.8.7"
|
|
29
29
|
end
|
|
@@ -6,7 +6,7 @@ module Jujube
|
|
|
6
6
|
|
|
7
7
|
# Specify a `shell` builder for a job.
|
|
8
8
|
#
|
|
9
|
-
# See {http://
|
|
9
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/builders.html#builders.shell}.
|
|
10
10
|
#
|
|
11
11
|
# @param command [String] The shell command to execute.
|
|
12
12
|
# @return [Hash] The specification for the component.
|
|
@@ -8,7 +8,7 @@ module Jujube
|
|
|
8
8
|
|
|
9
9
|
# Specify a `label-expression` axis for a matrix job.
|
|
10
10
|
#
|
|
11
|
-
# See {http://
|
|
11
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/project_matrix.html}.
|
|
12
12
|
#
|
|
13
13
|
# @param name [Symbol, String] The name of the axis.
|
|
14
14
|
# @param values [Array<String>] The values of the axis.
|
|
@@ -19,7 +19,7 @@ module Jujube
|
|
|
19
19
|
|
|
20
20
|
# Specify a `slave` axis for a matrix job.
|
|
21
21
|
#
|
|
22
|
-
# See {http://
|
|
22
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/project_matrix.html}.
|
|
23
23
|
#
|
|
24
24
|
# @param name [Symbol, String] The name of the axis.
|
|
25
25
|
# @param values [Array<String>] The values of the axis.
|
|
@@ -32,7 +32,7 @@ module Jujube
|
|
|
32
32
|
|
|
33
33
|
# Specify an axis for a matrix job.
|
|
34
34
|
#
|
|
35
|
-
# See {http://
|
|
35
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/project_matrix.html}.
|
|
36
36
|
#
|
|
37
37
|
# @param name [Symbol, String] The name of the axis.
|
|
38
38
|
# @param values [Array<String>] The values of the axis.
|
|
@@ -8,7 +8,7 @@ module Jujube
|
|
|
8
8
|
# @!method priority_sorter(options = {})
|
|
9
9
|
# Specify a `priority-sorter` property for a job.
|
|
10
10
|
#
|
|
11
|
-
# See {http://
|
|
11
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/properties.html#properties.priority-sorter}.
|
|
12
12
|
#
|
|
13
13
|
# @param options [Hash] The configuration options for the component.
|
|
14
14
|
# @return [Hash] The specification for the component.
|
|
@@ -17,7 +17,7 @@ module Jujube
|
|
|
17
17
|
# @!method throttle(options = {})
|
|
18
18
|
# Specify a `throttle` property for a job.
|
|
19
19
|
#
|
|
20
|
-
# See {http://
|
|
20
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/properties.html#properties.throttle}.
|
|
21
21
|
#
|
|
22
22
|
# @param options [Hash] The configuration options for the component.
|
|
23
23
|
# @return [Hash] The specification for the component.
|
|
@@ -8,7 +8,7 @@ module Jujube
|
|
|
8
8
|
# @!method archive(options = {})
|
|
9
9
|
# Specify an `archive` publisher for a job.
|
|
10
10
|
#
|
|
11
|
-
# See {http://
|
|
11
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.archive}.
|
|
12
12
|
#
|
|
13
13
|
# @param options [Hash] The configuration options for the component.
|
|
14
14
|
# @return [Hash] The specification for the component.
|
|
@@ -17,7 +17,7 @@ module Jujube
|
|
|
17
17
|
# @!method cppcheck(options = {})
|
|
18
18
|
# Specify a `cppcheck` publisher for a job.
|
|
19
19
|
#
|
|
20
|
-
# See {http://
|
|
20
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.cppcheck}.
|
|
21
21
|
#
|
|
22
22
|
# @param options [Hash] The configuration options for the component.
|
|
23
23
|
# @return [Hash] The specification for the component.
|
|
@@ -26,7 +26,7 @@ module Jujube
|
|
|
26
26
|
# @!method email_ext(options = {})
|
|
27
27
|
# Specify an `email-ext` publisher for a job.
|
|
28
28
|
#
|
|
29
|
-
# See {http://
|
|
29
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.email-ext}.
|
|
30
30
|
#
|
|
31
31
|
# @param options [Hash] The configuration options for the component.
|
|
32
32
|
# @return [Hash] The specification for the component.
|
|
@@ -35,7 +35,7 @@ module Jujube
|
|
|
35
35
|
# @!method fitnesse(options = {})
|
|
36
36
|
# Specify a `fitnesse` publisher for a job.
|
|
37
37
|
#
|
|
38
|
-
# See {http://
|
|
38
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.fitnesse}.
|
|
39
39
|
#
|
|
40
40
|
# @param options [Hash] The configuration options for the component.
|
|
41
41
|
# @return [Hash] The specification for the component.
|
|
@@ -44,7 +44,7 @@ module Jujube
|
|
|
44
44
|
# @!method ircbot(options = {})
|
|
45
45
|
# Specify an `ircbot` publisher for a job.
|
|
46
46
|
#
|
|
47
|
-
# See {http://
|
|
47
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ircbot}.
|
|
48
48
|
#
|
|
49
49
|
# @param options [Hash] The configuration options for the component.
|
|
50
50
|
# @return [Hash] The specification for the component.
|
|
@@ -53,7 +53,7 @@ module Jujube
|
|
|
53
53
|
# @!method junit(options = {})
|
|
54
54
|
# Specify a `junit` publisher for a job.
|
|
55
55
|
#
|
|
56
|
-
# See {http://
|
|
56
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.junit}.
|
|
57
57
|
#
|
|
58
58
|
# @param options [Hash] The configuration options for the component.
|
|
59
59
|
# @return [Hash] The specification for the component.
|
|
@@ -62,7 +62,7 @@ module Jujube
|
|
|
62
62
|
# @!method trigger(options = {})
|
|
63
63
|
# Specify a `trigger` publisher for a job.
|
|
64
64
|
#
|
|
65
|
-
# See {http://
|
|
65
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.trigger}.
|
|
66
66
|
#
|
|
67
67
|
# @param options [Hash] The configuration options for the component.
|
|
68
68
|
# @return [Hash] The specification for the component.
|
|
@@ -70,7 +70,7 @@ module Jujube
|
|
|
70
70
|
|
|
71
71
|
# Specify an `xunit` publisher for a job.
|
|
72
72
|
#
|
|
73
|
-
# See {http://
|
|
73
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.xunit}.
|
|
74
74
|
#
|
|
75
75
|
# `xunit` can publish multiple sets of test results. The specification for each set
|
|
76
76
|
# of test results is added in a nested configuration block using the {#unittest} method.
|
|
@@ -95,7 +95,7 @@ module Jujube
|
|
|
95
95
|
# @!method unittest(options = {})
|
|
96
96
|
# Configure a `unittest` test type for an {#xunit} publisher.
|
|
97
97
|
#
|
|
98
|
-
# See {http://
|
|
98
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.xunit}.
|
|
99
99
|
#
|
|
100
100
|
# @param options [Hash] The configuration options for the test type.
|
|
101
101
|
# @return [Hash] The specification for the test type.
|
|
@@ -8,7 +8,7 @@ module Jujube
|
|
|
8
8
|
# @!method git(options = {})
|
|
9
9
|
# Specify a `git` SCM for a job.
|
|
10
10
|
#
|
|
11
|
-
# See {http://
|
|
11
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#scm.git}.
|
|
12
12
|
#
|
|
13
13
|
# @param options [Hash] The configuration options for the component.
|
|
14
14
|
# @return [Hash] The specification for the component.
|
|
@@ -16,7 +16,7 @@ module Jujube
|
|
|
16
16
|
|
|
17
17
|
# Specify a `store` SCM for a job.
|
|
18
18
|
#
|
|
19
|
-
# See {http://
|
|
19
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/scm.html#scm.store}.
|
|
20
20
|
#
|
|
21
21
|
# `store` can watch multiple pundles (packages or bundles) The specification for each
|
|
22
22
|
# pundle is added in a nested configuration block using the {#package} or {#bundle} method.
|
|
@@ -3,21 +3,21 @@ module Jujube
|
|
|
3
3
|
|
|
4
4
|
# Helper methods for creating trigger components.
|
|
5
5
|
module Triggers
|
|
6
|
+
extend Macros
|
|
6
7
|
|
|
7
8
|
# Specify a `pollscm` trigger for a job.
|
|
8
9
|
#
|
|
9
|
-
#
|
|
10
|
+
# This trigger requires jenkins-job-builder 1.3.0 or later.
|
|
10
11
|
#
|
|
11
|
-
#
|
|
12
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.pollscm}.
|
|
13
|
+
#
|
|
14
|
+
# @param options [Hash] The configuration options for the component.
|
|
12
15
|
# @return [Hash] The specification for the component.
|
|
13
|
-
|
|
14
|
-
{'pollscm' => interval}
|
|
15
|
-
end
|
|
16
|
+
standard_component :pollscm
|
|
16
17
|
|
|
17
18
|
# Specify a `pollurl` trigger for a job.
|
|
18
19
|
#
|
|
19
|
-
#
|
|
20
|
-
# See {https://review.openstack.org/83524/} for the patch.
|
|
20
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.pollurl}.
|
|
21
21
|
#
|
|
22
22
|
# `pollurl` can poll several URLs. Each URL specification is added
|
|
23
23
|
# in a nested configuration block using the {#url} method.
|
|
@@ -41,7 +41,7 @@ module Jujube
|
|
|
41
41
|
|
|
42
42
|
# Specify a `reverse` trigger for a job.
|
|
43
43
|
#
|
|
44
|
-
# See {http://
|
|
44
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.reverse}.
|
|
45
45
|
#
|
|
46
46
|
# @param options [Hash] The reverse project trigger options.
|
|
47
47
|
# @option options [String, Array<String>] :jobs The jobs to watch. Note that
|
|
@@ -8,7 +8,7 @@ module Jujube
|
|
|
8
8
|
# @!method timeout(options = {})
|
|
9
9
|
# Specify a `timeout` wrapper for a job.
|
|
10
10
|
#
|
|
11
|
-
# See {http://
|
|
11
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html#wrappers.timeout}.
|
|
12
12
|
#
|
|
13
13
|
# @param options [Hash] The configuration options for the component.
|
|
14
14
|
# @return [Hash] The specification for the component.
|
|
@@ -16,7 +16,7 @@ module Jujube
|
|
|
16
16
|
|
|
17
17
|
# Specify a `timestamps` wrapper for a job.
|
|
18
18
|
#
|
|
19
|
-
# See {http://
|
|
19
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/wrappers.html#wrappers.timestamps}.
|
|
20
20
|
#
|
|
21
21
|
# @return [Hash] The specification for the component.
|
|
22
22
|
def timestamps
|
data/lib/jujube/job.rb
CHANGED
|
@@ -27,7 +27,7 @@ module Jujube
|
|
|
27
27
|
# @!attribute name
|
|
28
28
|
# The name of the job - will be the name as seen in Jenkins.
|
|
29
29
|
#
|
|
30
|
-
# See {http://
|
|
30
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
31
31
|
#
|
|
32
32
|
# @return [String]
|
|
33
33
|
attribute :name
|
|
@@ -36,7 +36,7 @@ module Jujube
|
|
|
36
36
|
# The type of job. This normally does not need to be specified, as it
|
|
37
37
|
# will be inferred as `matrix` if any `axes` are added.
|
|
38
38
|
#
|
|
39
|
-
# See {http://
|
|
39
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
40
40
|
#
|
|
41
41
|
# @return [String]
|
|
42
42
|
attribute :project_type
|
|
@@ -44,7 +44,7 @@ module Jujube
|
|
|
44
44
|
# @!attribute description
|
|
45
45
|
# The description of the job.
|
|
46
46
|
#
|
|
47
|
-
# See {http://
|
|
47
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
48
48
|
#
|
|
49
49
|
# @return [String]
|
|
50
50
|
attribute :description
|
|
@@ -52,7 +52,7 @@ module Jujube
|
|
|
52
52
|
# @!attribute node
|
|
53
53
|
# The Jenkins node or named group where the job should be run.
|
|
54
54
|
#
|
|
55
|
-
# See {http://
|
|
55
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
56
56
|
#
|
|
57
57
|
# @return [String]
|
|
58
58
|
attribute :node
|
|
@@ -60,7 +60,7 @@ module Jujube
|
|
|
60
60
|
# @!attribute block_upstream
|
|
61
61
|
# `true` if this job should block while upstream jobs are running.
|
|
62
62
|
#
|
|
63
|
-
# See {http://
|
|
63
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
64
64
|
#
|
|
65
65
|
# @return [Boolean]
|
|
66
66
|
attribute :block_upstream
|
|
@@ -68,7 +68,7 @@ module Jujube
|
|
|
68
68
|
# @!attribute block_downstream
|
|
69
69
|
# `true` if this job should block while downstream jobs are running.
|
|
70
70
|
#
|
|
71
|
-
# See {http://
|
|
71
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
72
72
|
#
|
|
73
73
|
# @return [Boolean]
|
|
74
74
|
attribute :block_downstream
|
|
@@ -76,7 +76,7 @@ module Jujube
|
|
|
76
76
|
# @!attribute quiet_period
|
|
77
77
|
# Number of seconds to wait between consecutive runs of the job.
|
|
78
78
|
#
|
|
79
|
-
# See {http://
|
|
79
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
80
80
|
#
|
|
81
81
|
# @return [Fixnum]
|
|
82
82
|
attribute :quiet_period
|
|
@@ -84,7 +84,7 @@ module Jujube
|
|
|
84
84
|
# @!attribute disabled
|
|
85
85
|
# `true` if this job should be disabled.
|
|
86
86
|
#
|
|
87
|
-
# See {http://
|
|
87
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/general.html}.
|
|
88
88
|
#
|
|
89
89
|
# @return [Boolean]
|
|
90
90
|
attribute :disabled
|
|
@@ -99,7 +99,7 @@ module Jujube
|
|
|
99
99
|
# Add axes in the job's configuration block using helper methods defined in
|
|
100
100
|
# {Components::Parameters}.
|
|
101
101
|
#
|
|
102
|
-
# See {http://
|
|
102
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/project_matrix.html}.
|
|
103
103
|
#
|
|
104
104
|
# @return [Array]
|
|
105
105
|
section :axes
|
|
@@ -110,7 +110,7 @@ module Jujube
|
|
|
110
110
|
# Add properties in the job's configuration block using helper methods defined in
|
|
111
111
|
# {Components::Properties}.
|
|
112
112
|
#
|
|
113
|
-
# See {http://
|
|
113
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/properties.html}.
|
|
114
114
|
#
|
|
115
115
|
# @return [Array]
|
|
116
116
|
section :properties
|
|
@@ -121,7 +121,7 @@ module Jujube
|
|
|
121
121
|
# Add SCMs in the job's configuration block using helper methods defined in
|
|
122
122
|
# {Components::Scm}.
|
|
123
123
|
#
|
|
124
|
-
# See {http://
|
|
124
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/scm.html}.
|
|
125
125
|
#
|
|
126
126
|
# @return [Array]
|
|
127
127
|
section :scm
|
|
@@ -132,7 +132,7 @@ module Jujube
|
|
|
132
132
|
# Add triggers in the job's configuration block using helper methods defined in
|
|
133
133
|
# {Components::Triggers}.
|
|
134
134
|
#
|
|
135
|
-
# See {http://
|
|
135
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/triggers.html}.
|
|
136
136
|
#
|
|
137
137
|
# @return [Array]
|
|
138
138
|
section :triggers
|
|
@@ -143,7 +143,7 @@ module Jujube
|
|
|
143
143
|
# Add wrappers in the job's configuration block using helper methods defined in
|
|
144
144
|
# {Components::Wrappers}.
|
|
145
145
|
#
|
|
146
|
-
# See {http://
|
|
146
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/wrappers.html}.
|
|
147
147
|
#
|
|
148
148
|
# @return [Array]
|
|
149
149
|
section :wrappers
|
|
@@ -154,7 +154,7 @@ module Jujube
|
|
|
154
154
|
# Add builders in the job's configuration block using helper methods defined in
|
|
155
155
|
# {Components::Builders}.
|
|
156
156
|
#
|
|
157
|
-
# See {http://
|
|
157
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/builders.html}.
|
|
158
158
|
#
|
|
159
159
|
# @return [Array]
|
|
160
160
|
section :builders
|
|
@@ -165,7 +165,7 @@ module Jujube
|
|
|
165
165
|
# Add publishers in the job's configuration block using helper methods defined in
|
|
166
166
|
# {Components::Publishers}.
|
|
167
167
|
#
|
|
168
|
-
# See {http://
|
|
168
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/publishers.html}.
|
|
169
169
|
#
|
|
170
170
|
# @return [Array]
|
|
171
171
|
section :publishers
|
|
@@ -176,7 +176,7 @@ module Jujube
|
|
|
176
176
|
# Add notifications in the job's configuration block using helper methods defined in
|
|
177
177
|
# {Components::Notifications}.
|
|
178
178
|
#
|
|
179
|
-
# See {http://
|
|
179
|
+
# See {http://docs.openstack.org/infra/jenkins-job-builder/notifications.html}.
|
|
180
180
|
#
|
|
181
181
|
# @return [Array]
|
|
182
182
|
section :notifications
|
data/lib/jujube/version.rb
CHANGED
|
@@ -4,7 +4,14 @@ class TriggersTest < Minitest::Test
|
|
|
4
4
|
include Jujube::Components
|
|
5
5
|
|
|
6
6
|
def test_pollscm
|
|
7
|
-
|
|
7
|
+
expected = {
|
|
8
|
+
"pollscm" => {
|
|
9
|
+
"cron" => "CRON",
|
|
10
|
+
"ignore-post-commit-hooks" => true
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
actual = pollscm(cron: "CRON", ignore_post_commit_hooks: true)
|
|
14
|
+
assert_equal(expected, actual)
|
|
8
15
|
end
|
|
9
16
|
|
|
10
17
|
def test_pollurl_with_no_content_checks
|
data/test/driver_test.rb
CHANGED
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.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Randy Coulman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '2.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '2.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: yard
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
version: '0'
|
|
162
162
|
requirements: []
|
|
163
163
|
rubyforge_project:
|
|
164
|
-
rubygems_version: 2.
|
|
164
|
+
rubygems_version: 2.5.1
|
|
165
165
|
signing_key:
|
|
166
166
|
specification_version: 4
|
|
167
167
|
summary: Ruby front-end for jenkins-job-builder
|