添加任务序号

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

View File

@ -885,8 +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
if @training_task.status == 0
params = {:jobName => "#{jobName}", :taskId => "#{taskId}"}
params = {:jobName => "#{jobName}", :taskId => "#{taskId}", :position => "#{position}"}
uri = URI.parse("http://123.59.135.74:9999/jenkins-exec/api/buildJob")
begin
res = uri_exec uri, params