jenkins_pipeline_builder 0.1.5 → 0.1.6

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: 9cc9e61ea35987e7d0f6d0504fb55378c755df1b
4
- data.tar.gz: c74fa0ad124aa3a4b41b941593836846cb608437
3
+ metadata.gz: 7737317cba0817ca6e49cf3441225c74888f582b
4
+ data.tar.gz: c7758bd197ab65ad95a555a5e8b8e1c38ed2ba4f
5
5
  SHA512:
6
- metadata.gz: 59cf44be2dff1d951273e2a026708cb354bfcb6581daa164b64c058593d7add78b8c7a6a34253272019c2886fbd664ce2545bf3bd2e371fd7c44c6769b4dcd7b
7
- data.tar.gz: e86d64a7cae810430373278a39990c3046e2c247f2af2c5c8c887f51073c322974cb529f779643c30cf772d00024e1735bb57cdadfd940e282fc1891ff71d4e9
6
+ metadata.gz: 8b118f7d6abb15cfe7ad0ec0b4ae8faaf38ec3eaf2f4cae5629164acf154f427c2ced2414564e3c7bd54a8b9d83d284a2c96c0050b6d4e094a10cd1bcaf9986f
7
+ data.tar.gz: e48d87c7d75b2e384c1fe241308e4b1c12b2fd2e29eab7b3f95fa7f45be18163e85d91ef4b61e07ade6fa7658b62a2618c512cc5d86165a6113cd39cef42698e
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  jenkins-pipeline-builder
2
2
  ========================
3
3
 
4
- YAML driven CI Jenkins Pipeline Builder enabling to version your artifact pipelines alongside with the artifact source itself.
4
+ YAML driven CI Jenkins Pipeline Builder enabling to version your artifact pipelines alongside with the artifact source
5
+ itself.
5
6
 
7
+ This Gem uses this methodolody by itself. Notice the 'pipeline' folder where we have a declaration of the Gem's build
8
+ pipeline.
6
9
 
7
10
  # Background
8
11
 
@@ -21,5 +21,5 @@
21
21
  #
22
22
 
23
23
  module JenkinsPipelineBuilder
24
- VERSION = "0.1.5"
24
+ VERSION = "0.1.6"
25
25
  end
@@ -85,7 +85,7 @@ module JenkinsPipelineBuilder
85
85
  return
86
86
  end
87
87
 
88
- view_path = parent_view_name.nil? ? '' : "/view/#{path_encode parent_view_name}"
88
+ view_path = parent_view_name.nil? ? '' : "/view/#{parent_view_name}"
89
89
  view_path += '/createView'
90
90
 
91
91
  @client.api_post_request(view_path, initial_post_params)
@@ -156,8 +156,8 @@ module JenkinsPipelineBuilder
156
156
  return
157
157
  end
158
158
 
159
- view_path = params[:parent_view].nil? ? '' : "/view/#{path_encode params[:parent_view]}"
160
- view_path += "/view/#{path_encode params[:name]}/configSubmit"
159
+ view_path = params[:parent_view].nil? ? '' : "/view/#{params[:parent_view]}"
160
+ view_path += "/view/#{params[:name]}/configSubmit"
161
161
 
162
162
  @client.api_post_request(view_path, post_params)
163
163
  end
@@ -233,7 +233,7 @@ module JenkinsPipelineBuilder
233
233
  def list_children(parent_view = nil, filter = "", ignorecase = true)
234
234
  @logger.info "Obtaining children views of parent #{parent_view} based on filter '#{filter}'"
235
235
  view_names = []
236
- path = parent_view.nil? ? '' : "/view/#{path_encode parent_view}"
236
+ path = parent_view.nil? ? '' : "/view/#{parent_view}"
237
237
  response_json = @client.api_get_request(path)
238
238
  response_json["views"].each { |view|
239
239
  if ignorecase
@@ -251,8 +251,8 @@ module JenkinsPipelineBuilder
251
251
  #
252
252
  def delete(view_name, parent_view = nil)
253
253
  @logger.info "Deleting view '#{view_name}'"
254
- path = parent_view.nil? ? '' : "/view/#{path_encode parent_view}"
255
- path += "/view/#{path_encode view_name}/doDelete"
254
+ path = parent_view.nil? ? '' : "/view/#{parent_view}"
255
+ path += "/view/#{view_name}/doDelete"
256
256
  @client.api_post_request(path)
257
257
  end
258
258
  end
@@ -0,0 +1,31 @@
1
+ - job:
2
+ name: 'Jenkins-Pipeline-Builder'
3
+ scm_provider: git
4
+ scm_url: https://github.com/IgorShare/jenkins_pipeline_builder.git
5
+ scm_branch: master
6
+ scm_params:
7
+ excuded_users: buildmaster
8
+ shell_command: '. commit_build.sh'
9
+ triggers:
10
+ - scm_polling: 'H/5 * * * *'
11
+ wrappers:
12
+ - timestamp: true
13
+ - ansicolor: true
14
+ - rvm: "`cat .ruby-version`@`cat .ruby-gemset`"
15
+ publishers:
16
+ - junit_result:
17
+ test_results: 'out/**/*.xml'
18
+ - git:
19
+ push-merge: true
20
+ push-only-if-success: false
21
+ - hipchat: true
22
+ - coverage_result:
23
+ report_dir: out/coverage/rcov
24
+ total:
25
+ healthy: 80
26
+ unhealthy: 0
27
+ unstable: 0
28
+ code:
29
+ healthy: 80
30
+ unhealthy: 0
31
+ unstable: 0
@@ -51,14 +51,14 @@ describe JenkinsPipelineBuilder::View do
51
51
 
52
52
  it 'creates a Nested view with a child' do
53
53
  params_parent = {
54
- name: 'test_nested_view',
54
+ name: 'My Test Parent View',
55
55
  type: 'nestedView'
56
56
  }
57
57
 
58
58
  create_and_validate(params_parent)
59
59
 
60
60
  params_child = {
61
- name: 'test_list_view',
61
+ name: 'Test List View',
62
62
  parent_view: params_parent[:name]
63
63
  }
64
64
 
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.1.5
4
+ version: 0.1.6
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-03-08 00:00:00.000000000 Z
11
+ date: 2014-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -285,6 +285,7 @@ files:
285
285
  - lib/jenkins_pipeline_builder/view.rb
286
286
  - lib/jenkins_pipeline_builder/wrappers.rb
287
287
  - lib/jenkins_pipeline_builder/xml_helper.rb
288
+ - pipeline/Jenkins-Pipeline-Builder.yaml
288
289
  - spec/func_tests/spec_helper.rb
289
290
  - spec/func_tests/view_spec.rb
290
291
  - spec/unit_tests/compiler_spec.rb