/// <summary> /// Run the Build Job /// </summary> public void run() { state = State.RUNNING; try { // Initialize project dir initProjectDir(); // Add build commands foreach (string sCommand in buildInfo.GetCommands()) { commands.AddLast(sCommand); } // Execute foreach (string sCommand in commands) { if (!exec(sCommand)) { state = State.FAILED; break; } } if (state == State.RUNNING) { state = State.SUCCESS; } } catch (Exception rex) { outputList.Enqueue(""); outputList.Enqueue("A runner exception occoured: " + rex.Message); outputList.Enqueue(""); state = State.FAILED; } completed = true; }