jenkins-maestrodev 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog.md +58 -0
- data/Gemfile +3 -0
- data/README.md +162 -0
- data/Rakefile +110 -0
- data/bin/jenkins +9 -0
- data/cucumber.yml +8 -0
- data/features/build_details.feature +44 -0
- data/features/configure.feature +36 -0
- data/features/default_host.feature +26 -0
- data/features/development.feature +14 -0
- data/features/listing_jobs.feature +34 -0
- data/features/manage_jobs.feature +263 -0
- data/features/manage_slave_nodes.feature +83 -0
- data/features/step_definitions/common_steps.rb +192 -0
- data/features/step_definitions/fixture_project_steps.rb +8 -0
- data/features/step_definitions/jenkins_steps.rb +116 -0
- data/features/step_definitions/scm_steps.rb +12 -0
- data/features/support/common.rb +37 -0
- data/features/support/env.rb +19 -0
- data/features/support/hooks.rb +16 -0
- data/features/support/jenkins_helpers.rb +6 -0
- data/features/support/matchers.rb +10 -0
- data/fixtures/jenkins/envfile.hpi +0 -0
- data/fixtures/jenkins/git.hpi +0 -0
- data/fixtures/jenkins/github.hpi +0 -0
- data/fixtures/jenkins/greenballs.hpi +0 -0
- data/fixtures/jenkins/rake.hpi +0 -0
- data/fixtures/jenkins/ruby.hpi +0 -0
- data/fixtures/projects/erlang/rebar.config +1 -0
- data/fixtures/projects/non-bundler/Rakefile +4 -0
- data/fixtures/projects/rails-3/.gitignore +4 -0
- data/fixtures/projects/rails-3/Gemfile +30 -0
- data/fixtures/projects/rails-3/Gemfile.lock +74 -0
- data/fixtures/projects/rails-3/README +256 -0
- data/fixtures/projects/rails-3/Rakefile +7 -0
- data/fixtures/projects/rails-3/app/controllers/application_controller.rb +3 -0
- data/fixtures/projects/rails-3/app/helpers/application_helper.rb +2 -0
- data/fixtures/projects/rails-3/app/views/layouts/application.html.erb +14 -0
- data/fixtures/projects/rails-3/config.ru +4 -0
- data/fixtures/projects/rails-3/config/application.rb +42 -0
- data/fixtures/projects/rails-3/config/boot.rb +13 -0
- data/fixtures/projects/rails-3/config/database.yml +22 -0
- data/fixtures/projects/rails-3/config/environment.rb +5 -0
- data/fixtures/projects/rails-3/config/environments/development.rb +26 -0
- data/fixtures/projects/rails-3/config/environments/production.rb +49 -0
- data/fixtures/projects/rails-3/config/environments/test.rb +35 -0
- data/fixtures/projects/rails-3/config/initializers/backtrace_silencers.rb +7 -0
- data/fixtures/projects/rails-3/config/initializers/inflections.rb +10 -0
- data/fixtures/projects/rails-3/config/initializers/mime_types.rb +5 -0
- data/fixtures/projects/rails-3/config/initializers/secret_token.rb +7 -0
- data/fixtures/projects/rails-3/config/initializers/session_store.rb +8 -0
- data/fixtures/projects/rails-3/config/locales/en.yml +5 -0
- data/fixtures/projects/rails-3/config/routes.rb +58 -0
- data/fixtures/projects/rails-3/db/seeds.rb +7 -0
- data/fixtures/projects/rails-3/doc/README_FOR_APP +2 -0
- data/fixtures/projects/rails-3/lib/tasks/.gitkeep +0 -0
- data/fixtures/projects/rails-3/public/404.html +26 -0
- data/fixtures/projects/rails-3/public/422.html +26 -0
- data/fixtures/projects/rails-3/public/500.html +26 -0
- data/fixtures/projects/rails-3/public/favicon.ico +0 -0
- data/fixtures/projects/rails-3/public/images/rails.png +0 -0
- data/fixtures/projects/rails-3/public/index.html +239 -0
- data/fixtures/projects/rails-3/public/javascripts/application.js +2 -0
- data/fixtures/projects/rails-3/public/javascripts/controls.js +965 -0
- data/fixtures/projects/rails-3/public/javascripts/dragdrop.js +974 -0
- data/fixtures/projects/rails-3/public/javascripts/effects.js +1123 -0
- data/fixtures/projects/rails-3/public/javascripts/prototype.js +6001 -0
- data/fixtures/projects/rails-3/public/javascripts/rails.js +175 -0
- data/fixtures/projects/rails-3/public/robots.txt +5 -0
- data/fixtures/projects/rails-3/public/stylesheets/.gitkeep +0 -0
- data/fixtures/projects/rails-3/script/rails +6 -0
- data/fixtures/projects/rails-3/test/performance/browsing_test.rb +9 -0
- data/fixtures/projects/rails-3/test/test_helper.rb +13 -0
- data/fixtures/projects/rails-3/vendor/plugins/.gitkeep +0 -0
- data/fixtures/projects/ruby/Gemfile +3 -0
- data/fixtures/projects/ruby/Gemfile.lock +10 -0
- data/fixtures/projects/ruby/Rakefile +4 -0
- data/jenkins.gemspec +34 -0
- data/lib/jenkins.rb +6 -0
- data/lib/jenkins/api.rb +312 -0
- data/lib/jenkins/cli.rb +361 -0
- data/lib/jenkins/cli/formatting.rb +53 -0
- data/lib/jenkins/config.rb +27 -0
- data/lib/jenkins/core_ext/hash.rb +9 -0
- data/lib/jenkins/core_ext/object/blank.rb +77 -0
- data/lib/jenkins/hudson-cli.jar +0 -0
- data/lib/jenkins/job_config_builder.rb +417 -0
- data/lib/jenkins/project_scm.rb +22 -0
- data/lib/jenkins/remote.rb +11 -0
- data/lib/jenkins/version.rb +3 -0
- data/spec/api_spec.rb +67 -0
- data/spec/fixtures/ec2_global.config.xml +103 -0
- data/spec/fixtures/erlang.single.config.xml +59 -0
- data/spec/fixtures/rails.multi.config.xml +82 -0
- data/spec/fixtures/rails.single.config.triggers.xml +84 -0
- data/spec/fixtures/rails.single.config.xml +80 -0
- data/spec/fixtures/ruby.multi-ruby-multi-labels.config.xml +84 -0
- data/spec/fixtures/ruby.multi.config.xml +77 -0
- data/spec/fixtures/ruby.single.config.xml +58 -0
- data/spec/fixtures/ruby.user-defined-axis.config.xml +69 -0
- data/spec/fixtures/therubyracer.config.xml +77 -0
- data/spec/hash_key_cleaner_spec.rb +25 -0
- data/spec/job_config_builder_spec.rb +233 -0
- data/spec/spec_helper.rb +15 -0
- metadata +291 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "bundler"
|
2
|
+
Bundler.setup
|
3
|
+
|
4
|
+
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
5
|
+
require 'jenkins'
|
6
|
+
require 'hpricot'
|
7
|
+
|
8
|
+
module ConfigFixtureLoaders
|
9
|
+
def config_xml(name, variation = nil)
|
10
|
+
name += ".#{variation}" if variation
|
11
|
+
@@config_fixture_loaders ||= {}
|
12
|
+
@@config_fixture_loaders[name] ||= File.read(File.dirname(__FILE__) + "/fixtures/#{name}.config.xml")
|
13
|
+
@@config_fixture_loaders[name]
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,291 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jenkins-maestrodev
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.9
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Charles Lowell
|
8
|
+
- Nic Williams
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2013-04-02 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: term-ansicolor
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.4
|
23
|
+
type: :runtime
|
24
|
+
version_requirements: *id001
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: httparty
|
27
|
+
prerelease: false
|
28
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.6.1
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id002
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: builder
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.1.2
|
43
|
+
type: :runtime
|
44
|
+
version_requirements: *id003
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: thor
|
47
|
+
prerelease: false
|
48
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.15.0
|
53
|
+
type: :runtime
|
54
|
+
version_requirements: *id004
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: hpricot
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- &id008
|
61
|
+
- ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
64
|
+
type: :runtime
|
65
|
+
version_requirements: *id005
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: json_pure
|
68
|
+
prerelease: false
|
69
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 1.5.1
|
74
|
+
type: :runtime
|
75
|
+
version_requirements: *id006
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: jenkins-war
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: "1.396"
|
84
|
+
type: :development
|
85
|
+
version_requirements: *id007
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: rake
|
88
|
+
prerelease: false
|
89
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- *id008
|
92
|
+
type: :development
|
93
|
+
version_requirements: *id009
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: cucumber
|
96
|
+
prerelease: false
|
97
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: "1.0"
|
102
|
+
type: :development
|
103
|
+
version_requirements: *id010
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: rspec
|
106
|
+
prerelease: false
|
107
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "2.0"
|
112
|
+
type: :development
|
113
|
+
version_requirements: *id011
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: awesome_print
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- *id008
|
120
|
+
type: :development
|
121
|
+
version_requirements: *id012
|
122
|
+
description: A suite of utilities for bringing continous integration to your projects (not the other way around) with jenkins CI
|
123
|
+
email:
|
124
|
+
- cowboyd@thefrontside.net
|
125
|
+
- drnicwilliams@gmail.com
|
126
|
+
executables:
|
127
|
+
- jenkins
|
128
|
+
extensions: []
|
129
|
+
|
130
|
+
extra_rdoc_files: []
|
131
|
+
|
132
|
+
files:
|
133
|
+
- Changelog.md
|
134
|
+
- Gemfile
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- bin/jenkins
|
138
|
+
- cucumber.yml
|
139
|
+
- features/build_details.feature
|
140
|
+
- features/configure.feature
|
141
|
+
- features/default_host.feature
|
142
|
+
- features/development.feature
|
143
|
+
- features/listing_jobs.feature
|
144
|
+
- features/manage_jobs.feature
|
145
|
+
- features/manage_slave_nodes.feature
|
146
|
+
- features/step_definitions/common_steps.rb
|
147
|
+
- features/step_definitions/fixture_project_steps.rb
|
148
|
+
- features/step_definitions/jenkins_steps.rb
|
149
|
+
- features/step_definitions/scm_steps.rb
|
150
|
+
- features/support/common.rb
|
151
|
+
- features/support/env.rb
|
152
|
+
- features/support/hooks.rb
|
153
|
+
- features/support/jenkins_helpers.rb
|
154
|
+
- features/support/matchers.rb
|
155
|
+
- fixtures/jenkins/envfile.hpi
|
156
|
+
- fixtures/jenkins/git.hpi
|
157
|
+
- fixtures/jenkins/github.hpi
|
158
|
+
- fixtures/jenkins/greenballs.hpi
|
159
|
+
- fixtures/jenkins/rake.hpi
|
160
|
+
- fixtures/jenkins/ruby.hpi
|
161
|
+
- fixtures/projects/erlang/rebar.config
|
162
|
+
- fixtures/projects/non-bundler/Rakefile
|
163
|
+
- fixtures/projects/rails-3/.gitignore
|
164
|
+
- fixtures/projects/rails-3/Gemfile
|
165
|
+
- fixtures/projects/rails-3/Gemfile.lock
|
166
|
+
- fixtures/projects/rails-3/README
|
167
|
+
- fixtures/projects/rails-3/Rakefile
|
168
|
+
- fixtures/projects/rails-3/app/controllers/application_controller.rb
|
169
|
+
- fixtures/projects/rails-3/app/helpers/application_helper.rb
|
170
|
+
- fixtures/projects/rails-3/app/views/layouts/application.html.erb
|
171
|
+
- fixtures/projects/rails-3/config.ru
|
172
|
+
- fixtures/projects/rails-3/config/application.rb
|
173
|
+
- fixtures/projects/rails-3/config/boot.rb
|
174
|
+
- fixtures/projects/rails-3/config/database.yml
|
175
|
+
- fixtures/projects/rails-3/config/environment.rb
|
176
|
+
- fixtures/projects/rails-3/config/environments/development.rb
|
177
|
+
- fixtures/projects/rails-3/config/environments/production.rb
|
178
|
+
- fixtures/projects/rails-3/config/environments/test.rb
|
179
|
+
- fixtures/projects/rails-3/config/initializers/backtrace_silencers.rb
|
180
|
+
- fixtures/projects/rails-3/config/initializers/inflections.rb
|
181
|
+
- fixtures/projects/rails-3/config/initializers/mime_types.rb
|
182
|
+
- fixtures/projects/rails-3/config/initializers/secret_token.rb
|
183
|
+
- fixtures/projects/rails-3/config/initializers/session_store.rb
|
184
|
+
- fixtures/projects/rails-3/config/locales/en.yml
|
185
|
+
- fixtures/projects/rails-3/config/routes.rb
|
186
|
+
- fixtures/projects/rails-3/db/seeds.rb
|
187
|
+
- fixtures/projects/rails-3/doc/README_FOR_APP
|
188
|
+
- fixtures/projects/rails-3/lib/tasks/.gitkeep
|
189
|
+
- fixtures/projects/rails-3/public/404.html
|
190
|
+
- fixtures/projects/rails-3/public/422.html
|
191
|
+
- fixtures/projects/rails-3/public/500.html
|
192
|
+
- fixtures/projects/rails-3/public/favicon.ico
|
193
|
+
- fixtures/projects/rails-3/public/images/rails.png
|
194
|
+
- fixtures/projects/rails-3/public/index.html
|
195
|
+
- fixtures/projects/rails-3/public/javascripts/application.js
|
196
|
+
- fixtures/projects/rails-3/public/javascripts/controls.js
|
197
|
+
- fixtures/projects/rails-3/public/javascripts/dragdrop.js
|
198
|
+
- fixtures/projects/rails-3/public/javascripts/effects.js
|
199
|
+
- fixtures/projects/rails-3/public/javascripts/prototype.js
|
200
|
+
- fixtures/projects/rails-3/public/javascripts/rails.js
|
201
|
+
- fixtures/projects/rails-3/public/robots.txt
|
202
|
+
- fixtures/projects/rails-3/public/stylesheets/.gitkeep
|
203
|
+
- fixtures/projects/rails-3/script/rails
|
204
|
+
- fixtures/projects/rails-3/test/performance/browsing_test.rb
|
205
|
+
- fixtures/projects/rails-3/test/test_helper.rb
|
206
|
+
- fixtures/projects/rails-3/vendor/plugins/.gitkeep
|
207
|
+
- fixtures/projects/ruby/Gemfile
|
208
|
+
- fixtures/projects/ruby/Gemfile.lock
|
209
|
+
- fixtures/projects/ruby/Rakefile
|
210
|
+
- jenkins.gemspec
|
211
|
+
- lib/jenkins.rb
|
212
|
+
- lib/jenkins/api.rb
|
213
|
+
- lib/jenkins/cli.rb
|
214
|
+
- lib/jenkins/cli/formatting.rb
|
215
|
+
- lib/jenkins/config.rb
|
216
|
+
- lib/jenkins/core_ext/hash.rb
|
217
|
+
- lib/jenkins/core_ext/object/blank.rb
|
218
|
+
- lib/jenkins/hudson-cli.jar
|
219
|
+
- lib/jenkins/job_config_builder.rb
|
220
|
+
- lib/jenkins/project_scm.rb
|
221
|
+
- lib/jenkins/remote.rb
|
222
|
+
- lib/jenkins/version.rb
|
223
|
+
- spec/api_spec.rb
|
224
|
+
- spec/fixtures/ec2_global.config.xml
|
225
|
+
- spec/fixtures/erlang.single.config.xml
|
226
|
+
- spec/fixtures/rails.multi.config.xml
|
227
|
+
- spec/fixtures/rails.single.config.triggers.xml
|
228
|
+
- spec/fixtures/rails.single.config.xml
|
229
|
+
- spec/fixtures/ruby.multi-ruby-multi-labels.config.xml
|
230
|
+
- spec/fixtures/ruby.multi.config.xml
|
231
|
+
- spec/fixtures/ruby.single.config.xml
|
232
|
+
- spec/fixtures/ruby.user-defined-axis.config.xml
|
233
|
+
- spec/fixtures/therubyracer.config.xml
|
234
|
+
- spec/hash_key_cleaner_spec.rb
|
235
|
+
- spec/job_config_builder_spec.rb
|
236
|
+
- spec/spec_helper.rb
|
237
|
+
homepage: https://github.com/jenkinsci/jenkins.rb/tree/master/ruby-tools/cli
|
238
|
+
licenses: []
|
239
|
+
|
240
|
+
metadata: {}
|
241
|
+
|
242
|
+
post_install_message:
|
243
|
+
rdoc_options: []
|
244
|
+
|
245
|
+
require_paths:
|
246
|
+
- lib
|
247
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- *id008
|
250
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
|
+
requirements:
|
252
|
+
- *id008
|
253
|
+
requirements: []
|
254
|
+
|
255
|
+
rubyforge_project: jenkins
|
256
|
+
rubygems_version: 2.0.3
|
257
|
+
signing_key:
|
258
|
+
specification_version: 4
|
259
|
+
summary: Painless Continuous Integration with Jenkins Server
|
260
|
+
test_files:
|
261
|
+
- features/build_details.feature
|
262
|
+
- features/configure.feature
|
263
|
+
- features/default_host.feature
|
264
|
+
- features/development.feature
|
265
|
+
- features/listing_jobs.feature
|
266
|
+
- features/manage_jobs.feature
|
267
|
+
- features/manage_slave_nodes.feature
|
268
|
+
- features/step_definitions/common_steps.rb
|
269
|
+
- features/step_definitions/fixture_project_steps.rb
|
270
|
+
- features/step_definitions/jenkins_steps.rb
|
271
|
+
- features/step_definitions/scm_steps.rb
|
272
|
+
- features/support/common.rb
|
273
|
+
- features/support/env.rb
|
274
|
+
- features/support/hooks.rb
|
275
|
+
- features/support/jenkins_helpers.rb
|
276
|
+
- features/support/matchers.rb
|
277
|
+
- spec/api_spec.rb
|
278
|
+
- spec/fixtures/ec2_global.config.xml
|
279
|
+
- spec/fixtures/erlang.single.config.xml
|
280
|
+
- spec/fixtures/rails.multi.config.xml
|
281
|
+
- spec/fixtures/rails.single.config.triggers.xml
|
282
|
+
- spec/fixtures/rails.single.config.xml
|
283
|
+
- spec/fixtures/ruby.multi-ruby-multi-labels.config.xml
|
284
|
+
- spec/fixtures/ruby.multi.config.xml
|
285
|
+
- spec/fixtures/ruby.single.config.xml
|
286
|
+
- spec/fixtures/ruby.user-defined-axis.config.xml
|
287
|
+
- spec/fixtures/therubyracer.config.xml
|
288
|
+
- spec/hash_key_cleaner_spec.rb
|
289
|
+
- spec/job_config_builder_spec.rb
|
290
|
+
- spec/spec_helper.rb
|
291
|
+
has_rdoc:
|