jenkins_api_client 1.0.0.beta.3 → 1.0.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "jenkins_api_client"
8
- s.version = "1.0.0.beta.3"
8
+ s.version = "1.0.0.beta.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kannan Manickam"]
12
- s.date = "2014-01-25"
12
+ s.date = "2014-02-18"
13
13
  s.description = "\nThis is a simple and easy-to-use Jenkins Api client with features focused on\nautomating Job configuration programaticaly and so forth"
14
14
  s.email = ["arangamani.kannan@gmail.com"]
15
15
  s.executables = ["jenkinscli"]
@@ -113,6 +113,7 @@ module JenkinsApi
113
113
  # * +:slave_host+ Hostname/IP of the slave
114
114
  # * +:slave_port+ Slave port
115
115
  # * +:private_key_file+ Private key file of master
116
+ # * +:credentials_id+ Id for credential in Jenkins
116
117
  #
117
118
  # @example Create a Dump Slave
118
119
  # create_dump_slave(
@@ -137,7 +138,9 @@ module JenkinsApi
137
138
  :remote_fs => "/var/jenkins",
138
139
  :labels => params[:name],
139
140
  :slave_port => 22,
140
- :mode => "normal"
141
+ :mode => "normal",
142
+ :private_key_file => "",
143
+ :credentials_id => ""
141
144
  }
142
145
 
143
146
  params = default_params.merge(params)
@@ -167,6 +170,7 @@ module JenkinsApi
167
170
  "port" => params[:slave_port],
168
171
  "username" => params[:slave_user],
169
172
  "privatekey" => params[:private_key_file],
173
+ "credentialsId" => params[:credentials_id]
170
174
  }
171
175
  }.to_json
172
176
  }
@@ -46,7 +46,7 @@ module JenkinsApi
46
46
  @timeout = @client.timeout
47
47
  end
48
48
 
49
- # Returns a string representation of System class.
49
+ # Returns a string representation of User class.
50
50
  #
51
51
  def to_s
52
52
  "#<JenkinsApi::Client::User>"
@@ -29,7 +29,7 @@ module JenkinsApi
29
29
  # Tiny version of the gem used for patches
30
30
  TINY = 0
31
31
  # Used for pre-releases
32
- PRE = 'beta.3'
32
+ PRE = 'beta.4'
33
33
  # Version String of Jenkins API Client.
34
34
  VERSION = [MAJOR, MINOR, TINY, PRE].compact.join('.')
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.3
4
+ version: 1.0.0.beta.4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-25 00:00:00.000000000 Z
12
+ date: 2014-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri