修改参数名

This commit is contained in:
huang 2017-02-25 19:55:47 +08:00
parent 011a0d7d36
commit 4127022891
1 changed files with 2 additions and 2 deletions

View File

@ -885,9 +885,9 @@ class ProjectsController < ApplicationController
taskId = params[:training_task_id]
jobName = @project.forked_from_project_id
@training_task = TrainingTask.find(taskId)
position = @training_task.position
step = @training_task.position
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")
begin
res = uri_exec uri, params