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.
@@ -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-{{pull_request_number}}' } } } }, '{{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}}' } } } } }
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
@@ -14,7 +14,7 @@ describe 'Pipeline' do
14
14
  let(:generator) { JenkinsPipelineBuilder::Generator.new }
15
15
 
16
16
  it 'generates its own pipeline' do
17
- generator.debug = true
17
+ JenkinsPipelineBuilder.debug!
18
18
  generator.bootstrap './pipeline'
19
19
  end
20
20
  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.11
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-24 00:00:00.000000000 Z
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