jenkins_pipeline_builder 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzM3ZDViODU1ODFjZTc4ODlkZmJjZGVjNzMzMjk3MWI1NDNmYmRkZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWFhYjQzMTgxZThlMjEyNDY1NTc1YzQxNjJmMWJhNTNhMWVhNDk1YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTk0MWM1NDhmMzI3NWJmNjZiYzllNGJjNWI4ZTEyZTVjY2E5N2M4ZTJkMjNh
|
10
|
+
ZTg2MWIyNDQ1YWMwMzY3NDI3MGYzMzY1YjUxMGYwMTdjMmQyNDlkYTZhNGZm
|
11
|
+
NGZkNzJkYTc3MGE1OTJmODM1YTUxN2I5YWYzZmQxNDY1YjJiNGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2I2ZjFmZTEzNjQ5ZDE5ZWU4MTkyZmZmMDRjYTIyNWVjNTU5YTVmOTUzNDcz
|
14
|
+
MTQyNDBmNzU4MDUwNTE5OGZhNThkYTUyNmE3YTBiYjQ5YzMyODUxZDJjODgw
|
15
|
+
ZGY4ZmZiM2MxY2Q2ZmJlMTQ2NjczYzIxZjI0ZTYzMTUwNzI1MzI=
|
@@ -221,11 +221,10 @@ module JenkinsPipelineBuilder
|
|
221
221
|
end
|
222
222
|
|
223
223
|
def publish_project(project_name)
|
224
|
-
return {} if project_name.nil?
|
225
224
|
errors = {}
|
226
225
|
found = false
|
227
226
|
job_collection.projects.each do |project|
|
228
|
-
next
|
227
|
+
next if project[:name] != project_name && !project_name.nil?
|
229
228
|
found = true
|
230
229
|
errors = create_jobs_and_views(project)
|
231
230
|
end
|
@@ -68,6 +68,12 @@ describe JenkinsPipelineBuilder::Generator do
|
|
68
68
|
File.expand_path("../fixtures/generator_tests/#{fixture}", __FILE__)
|
69
69
|
end
|
70
70
|
|
71
|
+
it 'works with no project specified' do
|
72
|
+
expect(@generator).to receive(:create_jobs_and_views).and_return({})
|
73
|
+
errors = bootstrap(fixture_path('sample_pipeline'), nil)
|
74
|
+
expect(errors).to be_empty
|
75
|
+
end
|
76
|
+
|
71
77
|
it 'raises an error when a specified project does not exist' do
|
72
78
|
expect { bootstrap(fixture_path('sample_pipeline'), 'Nopers') }.to raise_error
|
73
79
|
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.12.
|
4
|
+
version: 0.12.2
|
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-06-
|
12
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|