jenkins连接

This commit is contained in:
huang 2016-06-20 16:21:37 +08:00
parent 36e47fa8b1
commit 96e00f7bf3
1 changed files with 5 additions and 0 deletions

View File

@ -8,9 +8,14 @@ class QualityAnalysesController < ApplicationController
end
def create
user_name = User.find(params[:user_id]).try(:login)
branch = params[:branch]
language = params[:language]
path = params[:path]
@client = JenkinsApi::Client.new(:server_url => 'http://123.59.135.93:8890',
:username => user_name,
:password => '')
end
def index