improved_jenkins_client 1.6.6 → 1.6.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0b836a0050b0fac502e19aaa527a175e98cd33f92f3c1b450f9616136140c08
|
4
|
+
data.tar.gz: 4b49c8cd16ba499e768fbdea346ff08e607597012de67c226cc3b515e4bfa729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e4f9929f81880760be739a58ddda8475d70caa1a330c896aedd5cdef80ce53e464c0556843fa33fc7d4f1d9e353bf05d18e021cef68c1032ed99577bbe60e69
|
7
|
+
data.tar.gz: 29a6315717c1e4f57d6eaae520a37a6b804aea07c990cc7751030113615e409800a0a672b790024bcb0bf2dfac33bfb9c8739b17a1e6e2051e0b9d0d6627d26c
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{lib/|bin/|java_deps/|gemspec}) }
|
21
21
|
s.require_paths = ['lib']
|
22
22
|
s.homepage = 'https://github.com/yugabyte-db/improved_jenkins_client'
|
23
|
-
s.required_ruby_version = ::Gem::Requirement.new('
|
23
|
+
s.required_ruby_version = ::Gem::Requirement.new('>= 2.1')
|
24
24
|
s.rubygems_version = "2.4.5.1"
|
25
25
|
s.summary = "Improved Jenkins JSON API Client"
|
26
26
|
s.licenses = ["MIT"]
|
@@ -257,6 +257,13 @@ module JenkinsApi
|
|
257
257
|
stuck
|
258
258
|
end
|
259
259
|
|
260
|
+
# Cancel the given task
|
261
|
+
#
|
262
|
+
# @param [String] task_id the task id
|
263
|
+
def cancel_item(task_id)
|
264
|
+
@client.api_post_request("/queue/cancelItem?id=#{task_id}")
|
265
|
+
end
|
266
|
+
|
260
267
|
end
|
261
268
|
end
|
262
269
|
end
|
@@ -824,7 +824,8 @@ module JenkinsApi
|
|
824
824
|
# As of Jenkins version 1.519, the job builds return a 201 status code
|
825
825
|
# with a Location HTTP header with the pointing the URL of the item in
|
826
826
|
# the queue.
|
827
|
-
|
827
|
+
#
|
828
|
+
when 200, 201, 204, 302
|
828
829
|
if to_send == "body" && send_json
|
829
830
|
return JSON.parse(response.body)
|
830
831
|
elsif to_send == "body"
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kannan Manickam (the original jenkins_api_client gem)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -156,7 +156,7 @@ require_paths:
|
|
156
156
|
- lib
|
157
157
|
required_ruby_version: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- - "
|
159
|
+
- - ">="
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '2.1'
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|