jenkins_pipeline_builder 1.1.3 → 1.1.4
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,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce3cd1ec90927b3ee7caa1b95f071614a2c102b
|
4
|
+
data.tar.gz: 9a91d76370229bd24e971f81c80b572b2809ae8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4718650fff64b858da831f3966bb6d4e2d8a7b459e4e69d454795371f687453d7822ae65764403c246cfdc1e41c8fa520f427f2836c04bba4ed0d89a7784c328
|
7
|
+
data.tar.gz: caa174ca9b79d2741b4a8f7f29038b59ca257e294a049e8fcc02587e9913903a67af0eab84006fbd96b5b1d8b222942734b215d19366ffcec2f6200a52fe128d
|
@@ -562,6 +562,7 @@ publisher do
|
|
562
562
|
send('jenkins.plugins.github__pull__request__notifier.GithubPullRequestNotifier') do
|
563
563
|
pullRequestNumber params[:pull_request_number]
|
564
564
|
groupRepo params[:group_repo]
|
565
|
+
commentOnPr params[:comment_on_pr] || false
|
565
566
|
end
|
566
567
|
end
|
567
568
|
end
|
@@ -228,7 +228,15 @@ describe 'publishers' do
|
|
228
228
|
)
|
229
229
|
end
|
230
230
|
it 'generates a configuration' do
|
231
|
-
params = {
|
231
|
+
params = {
|
232
|
+
publishers: {
|
233
|
+
pull_request_notifier: {
|
234
|
+
pull_request_number: '5',
|
235
|
+
group_repo: 'test/me',
|
236
|
+
comment_on_pr: 'true'
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
232
240
|
|
233
241
|
JenkinsPipelineBuilder.registry.traverse_registry_path('job', params, @n_xml)
|
234
242
|
|
@@ -239,6 +247,24 @@ describe 'publishers' do
|
|
239
247
|
expect(publisher.children[0].content).to eq '5'
|
240
248
|
expect(publisher.children[1].name).to eq 'groupRepo'
|
241
249
|
expect(publisher.children[1].content).to eq 'test/me'
|
250
|
+
expect(publisher.children[2].name).to eq 'commentOnPr'
|
251
|
+
expect(publisher.children[2].content).to eq 'true'
|
252
|
+
end
|
253
|
+
it 'it does not comment on pull requests by default' do
|
254
|
+
params = {
|
255
|
+
publishers: {
|
256
|
+
pull_request_notifier: {
|
257
|
+
pull_request_number: '5', group_repo: 'test/me'
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
JenkinsPipelineBuilder.registry.traverse_registry_path('job', params, @n_xml)
|
263
|
+
|
264
|
+
publisher = @n_xml.root.children.first
|
265
|
+
|
266
|
+
expect(publisher.children[2].name).to eq 'commentOnPr'
|
267
|
+
expect(publisher.children[2].content).to eq 'false'
|
242
268
|
end
|
243
269
|
end
|
244
270
|
|
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: 1.1.
|
4
|
+
version: 1.1.4
|
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: 2017-02-
|
12
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|