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 +4 -4
- data/lib/jenkins_pipeline_builder/generator.rb +1 -0
- data/lib/jenkins_pipeline_builder/version.rb +1 -1
- data/lib/jenkins_pipeline_builder/wrappers.rb +10 -0
- data/spec/unit_tests/fixtures/files/rvm05.xml +26 -0
- data/spec/unit_tests/fixtures/files/rvm05.yaml +5 -0
- data/spec/unit_tests/generator_spec.rb +2 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b70981d3a70e5d6a2621f46e4483a0f49b1ebf8c
|
4
|
+
data.tar.gz: 406861e41a60ff2434623cf09aa4b8d1bf8593bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
@@ -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>
|
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.
|
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-
|
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
|