improved_jenkins_client 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26e682d2f9c008a0943a3ff4d76fdc5a9ea614135eef5ed6f8dfc20c692c1c3d
4
- data.tar.gz: 4ee3bc91c1cc3e7c86601012de333e79fde95b73e4b828a7c2e899dd28abd3c1
3
+ metadata.gz: 3bd76b52cc0145e53f5fff5e80ff895350f890c84a284ffad8362c574804533f
4
+ data.tar.gz: 11589a77612dd8caef6da7a762a3e5626d0cbaa3b283ec73ce37d23398d87d9d
5
5
  SHA512:
6
- metadata.gz: 2c2c4e95a00b51edd873288112253bcba265475e7dcb50466d0f6d5629850adefb1c9b9ce983cbb4f2ad3b5160a7f1be22827fcf12b4fccb105e060bdd0e3651
7
- data.tar.gz: 9053180465db13e212f82b6889a0c9012f52f28dba300b7eb06eae362728120ffd5e43251bd5909bc0633664e7a34286c69b7d88264a3f75807fab9a1e2dc33f
6
+ metadata.gz: 4a5af1612b767ec3a8fa2321f0f81a2b3b3e41881f2c99d272db0aa77b9a3e3262648bab9a86b47a70bade5f5188a5f5465968185a9512b6755864e7341b3ec0
7
+ data.tar.gz: cc0e7ad61dc9849bf93f41083bb255e52e26d0a641472cd4fdfd412fa0bca52b61b14de265d52912591cce9496a4336ef526c4a094e0ade26625567f67e9d561
@@ -726,7 +726,7 @@ module JenkinsApi
726
726
  @logger.info "Obtaining the build details of '#{job_name}'"
727
727
  url = "/job/#{path_encode job_name}"
728
728
 
729
- tree = options[:tree] || nil
729
+ tree = options[:tree]
730
730
  response_json = @client.api_get_request url, tree_string(tree)
731
731
  response_json["builds"]
732
732
  end
@@ -1193,13 +1193,14 @@ module JenkinsApi
1193
1193
  #
1194
1194
  # @param [String] job_name
1195
1195
  # @param [Number] build_num
1196
+ # @param [String] tree
1196
1197
  #
1197
- def get_build_details(job_name, build_num)
1198
+ def get_build_details(job_name, build_num, tree: nil)
1198
1199
  build_num = get_current_build_number(job_name) if build_num == 0
1199
- @logger.info "Obtaining the build details of '#{job_name}'" +
1200
- " Build ##{build_num}"
1200
+ log_msg = "Obtaining the build details of '#{job_name}' Build ##{build_num}"
1201
+ log_msg += " (with tree=...)" unless tree.nil?
1201
1202
 
1202
- @client.api_get_request("/job/#{path_encode job_name}/#{build_num}/")
1203
+ @client.api_get_request("/job/#{path_encode job_name}/#{build_num}/", tree_string(tree))
1203
1204
  end
1204
1205
 
1205
1206
  # Change the description of a specific job
@@ -27,7 +27,7 @@ module JenkinsApi
27
27
  # Minor version of the gem
28
28
  MINOR = 6
29
29
  # Tiny version of the gem used for patches
30
- TINY = 2
30
+ TINY = 3
31
31
  # Used for pre-releases
32
32
  PRE = nil
33
33
  # Version String of Jenkins API Client.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: improved_jenkins_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kannan Manickam (the original jenkins_api_client gem)