[Title] Fixed to update job status even it failed with unknown error
authordonghee yang <donghee.yang@samsung.com>
Mon, 11 Mar 2013 18:06:26 +0000 (03:06 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Mon, 11 Mar 2013 18:06:26 +0000 (03:06 +0900)
src/build_server/CommonJob.rb

index c6409e756a0d1b2a16246cc2eb2540a81cbb0bb0..a3522711a7ed77c80b06f9adf55b1cce4f72a387 100644 (file)
@@ -145,9 +145,11 @@ class CommonJob
                                if not is_sub_job? then terminate() end
                        rescue BuildServerException => e
                                @log.error e.message
+                               if @status == "WORKING" then @status = "ERROR" end
                        rescue => e
                                @log.error e.message
                                @log.error e.backtrace.inspect
+                               if @status == "WORKING" then @status = "ERROR" end
                        ensure
                                @thread = nil
                        end