gitUrl转码

This commit is contained in:
huang 2017-02-26 20:51:25 +08:00
parent e2280d5da7
commit fce24d11a9
1 changed files with 1 additions and 0 deletions

View File

@ -890,6 +890,7 @@ class ProjectsController < ApplicationController
rep_identify = Repository.where(:project_id => @project.id, :type => "Repository::Gitlab").first.try(:identifier)
gitlab_address = Redmine::Configuration['gitlab_address']
gitUrl = gitlab_address.to_s+"/"+@project.owner.to_s+"/"+ rep_identify + "."+"git"
gitUrl = Base64.encode64(gitUrl)
if @training_task.status == 0
params = {:jobName => "#{jobName}", :taskId => "#{taskId}", :step => "#{step}", :gitUrl => "#{gitUrl}"}
uri = URI.parse("http://123.59.135.74:9999/jenkins-exec/api/buildJob")