jenkins_pipeline_builder 0.9.10 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODkxMTI3ZjEzZDRmMWZhZWNhZDIzZmQ5M2ZmOWU5ODlkODdmNTM2Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzhhODIxNTBjNzVmOGEyN2QwZjhmZDI0OWZhMmY2ZjEwZThlOGYyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjQzYTZkNTE1ZWE2MDVhMmM4MTE3NTE5MGJiM2RjOWFmY2FiZjE2NmZlZjMw
|
10
|
+
MzM1YmU1M2ZjYTNjNDczMDBmYzU4MWU2NjJjODk1MTMxNDJjOTc3YWQ2MmU0
|
11
|
+
YWQ0OTk4OTA2ZjBkNjAzZTYwYjIwYzY1YjYzNDVjNGMxYTdkNjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2E2NWVhYTY2ZjlmZWY4ZmRlNDU2MzNhODZjNjczYTk4NWE5YTRiMmZiMjNk
|
14
|
+
NTE0OTBmMzJmMDE0NzBhMTYxOTczN2U1MjBiNzEwM2FlMTE1ZThhZmUzNDg3
|
15
|
+
NGU4NGYyNWU2NTM3YWVkOTdjMjIxMzg4ZjdjYTRjNDNkOGNhODk=
|
@@ -103,9 +103,22 @@ module JenkinsPipelineBuilder
|
|
103
103
|
[true, result]
|
104
104
|
end
|
105
105
|
|
106
|
+
def self.handle_enable(item)
|
107
|
+
if item.key?(:enabled) && item.key?(:parameters) && item.length == 2
|
108
|
+
return {} unless item[:enabled]
|
109
|
+
item = item.merge item[:parameters]
|
110
|
+
item.delete :parameters
|
111
|
+
item.delete :enabled
|
112
|
+
end
|
113
|
+
item
|
114
|
+
end
|
115
|
+
|
106
116
|
def self.compile_hash(item, settings, job_collection)
|
107
117
|
errors = {}
|
108
118
|
result = {}
|
119
|
+
|
120
|
+
item = handle_enable item
|
121
|
+
|
109
122
|
item.each do |key, value|
|
110
123
|
if value.nil?
|
111
124
|
errors[key] = "key: #{key} has a nil value, this is often a yaml syntax error. Skipping children and siblings"
|
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.
|
4
|
+
version: 0.10.0
|
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: 2014-12-
|
12
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -411,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
411
411
|
version: '0'
|
412
412
|
requirements: []
|
413
413
|
rubyforge_project:
|
414
|
-
rubygems_version: 2.4.
|
414
|
+
rubygems_version: 2.4.5
|
415
415
|
signing_key:
|
416
416
|
specification_version: 4
|
417
417
|
summary: This gem is will boostrap your Jenkins pipelines
|