修改参数名
This commit is contained in:
parent
011a0d7d36
commit
4127022891
|
@ -885,9 +885,9 @@ class ProjectsController < ApplicationController
|
||||||
taskId = params[:training_task_id]
|
taskId = params[:training_task_id]
|
||||||
jobName = @project.forked_from_project_id
|
jobName = @project.forked_from_project_id
|
||||||
@training_task = TrainingTask.find(taskId)
|
@training_task = TrainingTask.find(taskId)
|
||||||
position = @training_task.position
|
step = @training_task.position
|
||||||
if @training_task.status == 0
|
if @training_task.status == 0
|
||||||
params = {:jobName => "#{jobName}", :taskId => "#{taskId}", :position => "#{position}"}
|
params = {:jobName => "#{jobName}", :taskId => "#{taskId}", :step => "#{step}"}
|
||||||
uri = URI.parse("http://123.59.135.74:9999/jenkins-exec/api/buildJob")
|
uri = URI.parse("http://123.59.135.74:9999/jenkins-exec/api/buildJob")
|
||||||
begin
|
begin
|
||||||
res = uri_exec uri, params
|
res = uri_exec uri, params
|
||||||
|
|
Loading…
Reference in New Issue