添加日志格式

This commit is contained in:
huang 2018-06-10 21:02:03 +08:00
parent a4b01137f9
commit 631d1084a6
1 changed files with 3 additions and 0 deletions

View File

@ -219,6 +219,9 @@ class PullRequestsController < ApplicationController
# connect jenkins
client_jenkins = JenkinsApi::Client.new(:server_url => jenkins_address, :username => jenkins_username, :password => jenkins_password)
@output = client_jenkins.job.get_console_output("#{job_name}", build_num = 0, start = 0, mode = 'html')["output"]
@output2 = client_jenkins.job.get_console_output("#{job_name}", build_num = 0, start = 0, mode = 'text')["output"]
logger.info("jenkins ###########################{@output}")
logger.info("jenkins 1111111111111111111111111##{@output2}")
end