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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c65c1504113fc3704c4f6acfc5a1e12535c6c9933dccd27ed23cd8e625e07c9
|
4
|
+
data.tar.gz: baeb687f5b37668d0bfc37af69e70aed03ccc912fe68a69762e48fdb8403a178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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]
|
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.
|
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
|
-
|
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
|