improved_jenkins_client 1.6.2 → 1.6.3
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 +4 -4
- data/lib/improved_jenkins_client/job.rb +6 -5
- data/lib/improved_jenkins_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bd76b52cc0145e53f5fff5e80ff895350f890c84a284ffad8362c574804533f
|
4
|
+
data.tar.gz: 11589a77612dd8caef6da7a762a3e5626d0cbaa3b283ec73ce37d23398d87d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
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
|
-
|
1200
|
-
|
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
|