Skip to content

Commit 77a51ed

Browse files
committed
Echo to user the service being used
1 parent 7e27542 commit 77a51ed

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/vmfloaty/abs.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -155,24 +155,22 @@ def self.retrieve(verbose, os_types, token, url, user)
155155
# "job": {
156156
# "id": "12345",
157157
# "tags": {
158-
# "user": "jenkins",
159-
# "jenkins_build_url": "https://jenkins/job/platform_puppet_intn-van-sys_master"
158+
# "user": "username",
160159
# }
161160
# }
162161
# }
163162

164163
conn = Http.get_conn(verbose, url)
165164
conn.headers['X-AUTH-TOKEN'] = token if token
166165

167-
saved_job_id = Time.now.to_i
166+
saved_job_id = DateTime.now.strftime('%Q')
168167

169168
reqObj = {
170169
:resources => os_types,
171170
:job => {
172171
:id => saved_job_id,
173172
:tags => {
174173
:user => user,
175-
:url_string => "floaty://#{user}/#{saved_job_id}",
176174
},
177175
},
178176
}

lib/vmfloaty/utils.rb

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def self.get_service_config(config, options)
209209
service_config['token'] = options.token unless options.token.nil?
210210
service_config['user'] = options.user unless options.user.nil?
211211

212+
puts "Connecting to service #{service_config['type']} at #{service_config['url']} as #{service_config['user']}...\n\n"
212213
service_config
213214
end
214215
end

0 commit comments

Comments
 (0)