From 4127022891bfb9f4817c14cc03131b8e546167b1 Mon Sep 17 00:00:00 2001 From: huang Date: Sat, 25 Feb 2017 19:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 5cb234d19..a63d7904b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -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