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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d9455eef0d25ddd14e51eb5209f2744654e1efb0a01fbd401092969d58d1b2
4
- data.tar.gz: 4c0556da90432d42b4acf3f3ea19d8ea80daf5e27e069d06a9c1f4ce8ad5aedc
3
+ metadata.gz: 0835b69c82a04c134a91160cd8752da9f1231e7f65f170bc50373b96529f2c48
4
+ data.tar.gz: 94842b12df98c6db6c57897de68669b35b98512caa44900133bb75694919d8cd
5
5
  SHA512:
6
- metadata.gz: 081c258532dcf13405f594854c949e7d54e5777f0d5cc6489ca7c0ba48247aaa92ffdedb747e9f0e4c1ebfb1f702d351abc622e74476e362b4dbafa7b5d7b3b5
7
- data.tar.gz: f80ca63be1d2a744e366f8d762276eb9a7987170dcfc0d6414a21eb0208841985757a305d68828f50d0bfcf6152fea3ca432f77e73bcad1473be9698b8ead1d0
6
+ metadata.gz: 8dd866668e513e35777ea75e37fb37e437431f4699e6ad4685b0dce8e486191c8c33ae2c9519705e5a05ecd33fe4b8aaeaea175922df9909ef3297bb2bb9d621
7
+ data.tar.gz: 7e72e30f86c9317a19895fdd4131c61388da4d1054d19a2f5c104eae3ac659fd0ee65c4cf24f6ca00ee569ebf0708cd67be6bdd14fa819b841a16c8faf87c1f9
@@ -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.1...HEAD
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
@@ -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
- r = 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)
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
- RestClient::Resource.new(testurl, timeout: config[:timeout])
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
@@ -2,7 +2,7 @@ module SensuPluginsJenkins
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 6
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.1
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-01 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin