improved_jenkins_client 1.6.3 → 1.6.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
  SHA256:
3
- metadata.gz: 3bd76b52cc0145e53f5fff5e80ff895350f890c84a284ffad8362c574804533f
4
- data.tar.gz: 11589a77612dd8caef6da7a762a3e5626d0cbaa3b283ec73ce37d23398d87d9d
3
+ metadata.gz: 9c65c1504113fc3704c4f6acfc5a1e12535c6c9933dccd27ed23cd8e625e07c9
4
+ data.tar.gz: baeb687f5b37668d0bfc37af69e70aed03ccc912fe68a69762e48fdb8403a178
5
5
  SHA512:
6
- metadata.gz: 4a5af1612b767ec3a8fa2321f0f81a2b3b3e41881f2c99d272db0aa77b9a3e3262648bab9a86b47a70bade5f5188a5f5465968185a9512b6755864e7341b3ec0
7
- data.tar.gz: cc0e7ad61dc9849bf93f41083bb255e52e26d0a641472cd4fdfd412fa0bca52b61b14de265d52912591cce9496a4336ef526c4a094e0ade26625567f67e9d561
6
+ metadata.gz: 6ca64a445286f079ad0b1b5fae9a28f82a5eb4920f198555943edecbbee422a48a57a9b5697215fa6559ab17db5c805603df0c6172f00398299966b233a42842
7
+ data.tar.gz: 6d97da9fa72d9d7fa12448edacaa87de17009149b108e718b0410596a915fb3bd0bedd0f7712ba2db5c9c627024733ce319e1773415d9103f2226147f76d6a83
@@ -424,9 +424,9 @@ module JenkinsApi
424
424
  @logger.debug "GET #{to_get}"
425
425
  response = make_http_request(request)
426
426
  if raw_response
427
- handle_exception(response, "raw")
427
+ handle_exception(response, "raw", full_url: to_get)
428
428
  else
429
- handle_exception(response, "body", url_suffix =~ /json/)
429
+ handle_exception(response, "body", url_suffix =~ /json/, full_url: to_get)
430
430
  end
431
431
  end
432
432
 
@@ -797,8 +797,11 @@ module JenkinsApi
797
797
  # @raise [Exceptions::ApiException] Any other exception returned from
798
798
  # Jenkins that are not categorized in the API Client.
799
799
  #
800
- def handle_exception(response, to_send = "code", send_json = false)
800
+ def handle_exception(response, to_send = "code", send_json = false, full_url: nil)
801
801
  msg = "HTTP Code: #{response.code}, Response Body: #{response.body}"
802
+ unless full_url.nil?
803
+ msg += " URL: #{full_url}"
804
+ end
802
805
  @logger.debug msg
803
806
  case response.code.to_i
804
807
  # As of Jenkins version 1.519, the job builds return a 201 status code
@@ -723,7 +723,7 @@ module JenkinsApi
723
723
  # @param [String] job_name
724
724
  #
725
725
  def get_builds(job_name, options = {})
726
- @logger.info "Obtaining the build details of '#{job_name}'"
726
+ @logger.info "Obtaining the builds of job '#{job_name}'"
727
727
  url = "/job/#{path_encode job_name}"
728
728
 
729
729
  tree = options[:tree]
@@ -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 = 3
30
+ TINY = 4
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.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kannan Manickam (the original jenkins_api_client gem)
@@ -165,7 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.1.4
168
+ rubyforge_project:
169
+ rubygems_version: 2.7.6.3
169
170
  signing_key:
170
171
  specification_version: 4
171
172
  summary: Improved Jenkins JSON API Client