jenkins_pipeline_builder 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02fcf111dfc4d7ee761a087177a00c3e909f975b
4
- data.tar.gz: a0c3f06c111e86f50b7127d330c631bb9ec19efa
3
+ metadata.gz: b70981d3a70e5d6a2621f46e4483a0f49b1ebf8c
4
+ data.tar.gz: 406861e41a60ff2434623cf09aa4b8d1bf8593bb
5
5
  SHA512:
6
- metadata.gz: c9fcf6389ea919a717e137856250b349dd3a8c65d70475f33e1bcc7cd847e270eae50def9f86719b0605935505d9381ef3d4ea5f7527dfefe5cf18210ebed449
7
- data.tar.gz: f674cc7d1001f6ac9038aac411c830ee59020aa60568eaa9a1a0fa4c4716da159d3d5fc4a95f3a6b3a2ad8aa6ed5e0c11c18585a6bace2be27a18c689bf0328c
6
+ metadata.gz: d07a78ca215755167e7e4d8b80cc81a7f0547195f0a715ce2ed7a1b584ade4edf576fe8321949c152fb6868fc727cb838b5c05ea869f6629cc77bd90ed6de60b
7
+ data.tar.gz: 2508b75bee4d3cd77b51de9c90dfb3cac0eb8cbb42de04e43ae934290355631378e9720d74f65e8b408c03af2625921117fd1a1a0ff65bde3d3113a4b9b0fc95
@@ -77,6 +77,7 @@ module JenkinsPipelineBuilder
77
77
  ansicolor: Wrappers.method(:ansicolor),
78
78
  artifactory: Wrappers.method(:publish_to_artifactory),
79
79
  rvm: Wrappers.method(:run_with_rvm),
80
+ rvm05: Wrappers.method(:run_with_rvm05),
80
81
  inject_env_var: Wrappers.method(:inject_env_vars),
81
82
  inject_passwords: Wrappers.method(:inject_passwords),
82
83
  maven3artifactory: Wrappers.method(:artifactory_maven3_configurator)
@@ -21,5 +21,5 @@
21
21
  #
22
22
 
23
23
  module JenkinsPipelineBuilder
24
- VERSION = "0.3.1"
24
+ VERSION = "0.3.2"
25
25
  end
@@ -32,6 +32,16 @@ module JenkinsPipelineBuilder
32
32
  xml.send('hudson.plugins.timestamper.TimestamperBuildWrapper')
33
33
  end
34
34
 
35
+ def self.run_with_rvm05(wrapper, xml)
36
+ xml.send('ruby-proxy-object') {
37
+ xml.send('ruby-object', 'ruby-class' => 'Jenkins::Tasks::BuildWrapperProxy', 'pluginid' => 'rvm') {
38
+ xml.object('ruby-class' => 'RvmWrapper', 'pluginid' => 'rvm') {
39
+ xml.impl('pluginid' => "rvm", 'ruby-class' => 'String') { xml.text wrapper }
40
+ }
41
+ xml.pluginid(:pluginid => 'rvm', 'ruby-class' => 'String') { xml.text 'rvm' }
42
+ }
43
+ }
44
+ end
35
45
  def self.run_with_rvm(wrapper, xml)
36
46
  xml.send('ruby-proxy-object') {
37
47
  xml.send('ruby-object', 'ruby-class' => 'Jenkins::Plugin::Proxies::BuildWrapper', 'pluginid' => 'rvm') {
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project>
3
+ <actions/>
4
+ <description/>
5
+ <keepDependencies>false</keepDependencies>
6
+ <properties/>
7
+ <scm class="hudson.scm.NullSCM"/>
8
+ <canRoam>true</canRoam>
9
+ <disabled>false</disabled>
10
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
11
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
12
+ <triggers class="vector"/>
13
+ <concurrentBuild>false</concurrentBuild>
14
+ <builders/>
15
+ <publishers/>
16
+ <buildWrappers>
17
+ <ruby-proxy-object>
18
+ <ruby-object pluginid="rvm" ruby-class="Jenkins::Tasks::BuildWrapperProxy">
19
+ <object pluginid="rvm" ruby-class="RvmWrapper">
20
+ <impl pluginid="rvm" ruby-class="String">foo@bar</impl>
21
+ </object>
22
+ <pluginid pluginid="rvm" ruby-class="String">rvm</pluginid>
23
+ </ruby-object>
24
+ </ruby-proxy-object>
25
+ </buildWrappers>
26
+ </project>
@@ -0,0 +1,5 @@
1
+ ---
2
+ - job:
3
+ name: rvm05
4
+ wrappers:
5
+ - rvm05: 'foo@bar'
@@ -34,7 +34,8 @@ describe 'Test YAML jobs conversion to XML' do
34
34
  'Job-Gem-Build',
35
35
  'post_build_script',
36
36
  'properties_file',
37
- 'downstream'
37
+ 'downstream',
38
+ 'rvm05'
38
39
  ]
39
40
 
40
41
  files.each do |file|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins_pipeline_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Moochnick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2014-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -326,6 +326,8 @@ files:
326
326
  - spec/unit_tests/fixtures/files/project.yaml
327
327
  - spec/unit_tests/fixtures/files/properties_file.xml
328
328
  - spec/unit_tests/fixtures/files/properties_file.yaml
329
+ - spec/unit_tests/fixtures/files/rvm05.xml
330
+ - spec/unit_tests/fixtures/files/rvm05.yaml
329
331
  - spec/unit_tests/fixtures/templates/external_job.yaml
330
332
  - spec/unit_tests/fixtures/templates/project_with_jobs.yaml
331
333
  - spec/unit_tests/generator_spec.rb
@@ -380,6 +382,8 @@ test_files:
380
382
  - spec/unit_tests/fixtures/files/project.yaml
381
383
  - spec/unit_tests/fixtures/files/properties_file.xml
382
384
  - spec/unit_tests/fixtures/files/properties_file.yaml
385
+ - spec/unit_tests/fixtures/files/rvm05.xml
386
+ - spec/unit_tests/fixtures/files/rvm05.yaml
383
387
  - spec/unit_tests/fixtures/templates/external_job.yaml
384
388
  - spec/unit_tests/fixtures/templates/project_with_jobs.yaml
385
389
  - spec/unit_tests/generator_spec.rb