jenkins_pipeline_builder 0.10.11 → 0.10.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.rubocop.yml +1 -1
- data/lib/jenkins_pipeline_builder.rb +24 -1
- data/lib/jenkins_pipeline_builder/cli/helper.rb +14 -10
- data/lib/jenkins_pipeline_builder/extension_dsl.rb +21 -0
- data/lib/jenkins_pipeline_builder/extension_set.rb +174 -0
- data/lib/jenkins_pipeline_builder/extensions.rb +0 -175
- data/lib/jenkins_pipeline_builder/generator.rb +41 -370
- data/lib/jenkins_pipeline_builder/job.rb +128 -0
- data/lib/jenkins_pipeline_builder/job_collection.rb +112 -0
- data/lib/jenkins_pipeline_builder/module_registry.rb +1 -1
- data/lib/jenkins_pipeline_builder/pull_request.rb +1 -1
- data/lib/jenkins_pipeline_builder/remote_dependencies.rb +112 -0
- data/lib/jenkins_pipeline_builder/version.rb +1 -1
- data/lib/jenkins_pipeline_builder/view.rb +3 -3
- data/spec/lib/jenkins_pipeline_builder/cli/helper_spec.rb +1 -11
- data/spec/lib/jenkins_pipeline_builder/generator_spec.rb +26 -47
- data/spec/lib/jenkins_pipeline_builder/pull_request_spec.rb +1 -1
- data/spec/requests/pipeline_spec.rb +1 -1
- metadata +7 -2
@@ -34,7 +34,7 @@ describe JenkinsPipelineBuilder::PullRequest do
|
|
34
34
|
end
|
35
35
|
it 'process pull_request' do
|
36
36
|
pull = pull_request_class.new(project, 2, jobs, pull_request)
|
37
|
-
post_jobs = { '{{name}}-10' => { name: '{{name}}-10', type: :'job-template', value: { name: '{{name}}-10', description: '{{description}}', publishers: [{ downstream: { project: '{{job@{{name}}-11}}' } }], scm_branch: 'origin/pr/{{pull_request_number}}/head', scm_params: { refspec: 'refs/pull/*:refs/remotes/origin/pr/*', changelog_to_branch: { remote: 'origin', branch: 'pr
|
37
|
+
post_jobs = { '{{name}}-10' => { name: '{{name}}-10', type: :'job-template', value: { name: '{{name}}-10', description: '{{description}}', publishers: [{ downstream: { project: '{{job@{{name}}-11}}' } }], scm_branch: 'origin/pr/{{pull_request_number}}/head', scm_params: { refspec: 'refs/pull/*:refs/remotes/origin/pr/*', changelog_to_branch: { remote: 'origin', branch: 'pr/{{pull_request_number}}/head' } } } }, '{{name}}-11' => { name: '{{name}}-11', type: :'job-template', value: { name: '{{name}}-11', description: '{{description}}', scm_branch: 'origin/pr/{{pull_request_number}}/head', scm_params: { refspec: 'refs/pull/*:refs/remotes/origin/pr/*', changelog_to_branch: { remote: 'origin', branch: 'pr/{{pull_request_number}}/head' } } } } }
|
38
38
|
expect(pull.jobs).to eq(post_jobs)
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkins_pipeline_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Moochnick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -350,6 +350,8 @@ files:
|
|
350
350
|
- lib/jenkins_pipeline_builder/cli/pipeline.rb
|
351
351
|
- lib/jenkins_pipeline_builder/cli/view.rb
|
352
352
|
- lib/jenkins_pipeline_builder/compiler.rb
|
353
|
+
- lib/jenkins_pipeline_builder/extension_dsl.rb
|
354
|
+
- lib/jenkins_pipeline_builder/extension_set.rb
|
353
355
|
- lib/jenkins_pipeline_builder/extensions.rb
|
354
356
|
- lib/jenkins_pipeline_builder/extensions/builders.rb
|
355
357
|
- lib/jenkins_pipeline_builder/extensions/job_attributes.rb
|
@@ -357,9 +359,12 @@ files:
|
|
357
359
|
- lib/jenkins_pipeline_builder/extensions/triggers.rb
|
358
360
|
- lib/jenkins_pipeline_builder/extensions/wrappers.rb
|
359
361
|
- lib/jenkins_pipeline_builder/generator.rb
|
362
|
+
- lib/jenkins_pipeline_builder/job.rb
|
363
|
+
- lib/jenkins_pipeline_builder/job_collection.rb
|
360
364
|
- lib/jenkins_pipeline_builder/module_registry.rb
|
361
365
|
- lib/jenkins_pipeline_builder/pull_request.rb
|
362
366
|
- lib/jenkins_pipeline_builder/pull_request_generator.rb
|
367
|
+
- lib/jenkins_pipeline_builder/remote_dependencies.rb
|
363
368
|
- lib/jenkins_pipeline_builder/utils.rb
|
364
369
|
- lib/jenkins_pipeline_builder/version.rb
|
365
370
|
- lib/jenkins_pipeline_builder/view.rb
|