sensu-plugins-jenkins 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/bin/check-jenkins-health.rb +10 -10
- data/lib/sensu-plugins-jenkins/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0835b69c82a04c134a91160cd8752da9f1231e7f65f170bc50373b96529f2c48
|
4
|
+
data.tar.gz: 94842b12df98c6db6c57897de68669b35b98512caa44900133bb75694919d8cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dd866668e513e35777ea75e37fb37e437431f4699e6ad4685b0dce8e486191c8c33ae2c9519705e5a05ecd33fe4b8aaeaea175922df9909ef3297bb2bb9d621
|
7
|
+
data.tar.gz: 7e72e30f86c9317a19895fdd4131c61388da4d1054d19a2f5c104eae3ac659fd0ee65c4cf24f6ca00ee569ebf0708cd67be6bdd14fa819b841a16c8faf87c1f9
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.6.2] - 2018-03-01
|
10
|
+
### Fixed
|
11
|
+
- check-jenkins-health.rb: fixed bug introduced by #25 (@majormoses)
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
9
15
|
## [1.6.1] - 2018-03-01
|
10
16
|
### Fixed
|
11
17
|
- check-jenkins-health.rb: added various rescues to prevent from bricking (@mdzidic) (@majormoses)
|
@@ -89,7 +95,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
89
95
|
### Added
|
90
96
|
- initial release
|
91
97
|
|
92
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-jenkins/compare/1.6.
|
98
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-jenkins/compare/1.6.2...HEAD
|
99
|
+
[1.6.2]: https://github.com/sensu-plugins/sensu-plugins-jenkins/compare/1.6.1...1.6.2
|
93
100
|
[1.6.1]: https://github.com/sensu-plugins/sensu-plugins-jenkins/compare/1.6.0...1.6.1
|
94
101
|
[1.6.0]: https://github.com/sensu-plugins/sensu-plugins-jenkins/compare/1.5.0...1.6.0
|
95
102
|
[1.5.0]: https://github.com/sensu-plugins/sensu-plugins-jenkins/compare/1.4.0...1.5.0
|
data/bin/check-jenkins-health.rb
CHANGED
@@ -87,18 +87,18 @@ class JenkinsMetricsHealthChecker < Sensu::Plugin::Check::CLI
|
|
87
87
|
testurl = "#{https}://#{config[:server]}:#{config[:port]}#{config[:uri]}"
|
88
88
|
|
89
89
|
begin
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
90
|
+
rest_client = if config[:https] && config[:insecure]
|
91
|
+
RestClient::Resource.new(testurl, timeout: config[:timeout], verify_ssl: false)
|
92
|
+
elsif config[:https]
|
93
|
+
RestClient::Resource.new(testurl, timeout: config[:timeout], verify_ssl: true)
|
94
|
+
else
|
95
|
+
RestClient::Resource.new(testurl, timeout: config[:timeout])
|
96
|
+
end
|
97
|
+
r = if config[:verbose]
|
98
|
+
rest_client.get
|
94
99
|
else
|
95
|
-
|
100
|
+
rest_client.get { |response| response }
|
96
101
|
end
|
97
|
-
if config[:verbose]
|
98
|
-
r.get
|
99
|
-
else
|
100
|
-
r.get { |response| response }
|
101
|
-
end
|
102
102
|
rescue RestClient::SSLCertificateNotVerified => e
|
103
103
|
critical "ssl verification failed: #{e.response}"
|
104
104
|
rescue RestClient::ServerBrokeConnection
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-jenkins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|