From 07031ea8bc9b79bf4c30fe316ea16cae14fb0ca2 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 19 Apr 2017 20:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index c2d34e106..dcef4c35c 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -136,12 +136,10 @@ class GamesController < ApplicationController step = game_challenge.try(:position) params = {:jobNameForInstance => "#{jobName}", :buildID => "#{taskId}", :step => "#{step}", :instanceGitURL => "#{gitUrl}", :instanceChallenge => "#{step}"} uri = URI("#{jenkins_shixuns}/jenkins-exec/api/buildJobForInstance") -=begin res = uri_exec uri, params if (res && res['code'] != 0) raise("Build job failed") end -=end render :json => {:result => "success"} end rescue