"master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.6ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.6ms) [debug] SELECT c0."id", c0."raw_body", c0."build_id", c0."inserted_at", c0."updated_at" FROM "config_files" AS c0 WHERE (c0."build_id" IN ($1)) 'O' (0.6ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.6ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.6ms) [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "saybacon"} Pipelines: [:api] [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (6.6ms) [debug] BEGIN [] (0.2ms) [debug] INSERT INTO "scripts" ("build_id", "inserted_at", "name", "status", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [79, {{2015, 4, 22}, {17, 46, 57, 0}}, "main", "running", {{2015, 4, 22 }, {17, 46, 57, 0}}] (0.5ms) [debug] COMMIT [] (6.0ms) [debug] BEGIN [] (0.5ms) [debug] INSERT INTO "logs" ("inserted_at", "script_id", "stdio", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === R unning command: echo cool, it works!\n", {{2015, 4, 22}, {17, 46, 57, 0}}] (0.7ms) [debug] COMMIT [] (7.4ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (26.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.8ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.8ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.9ms) [debug] BEGIN [] (0.3ms) [debug] INSERT INTO "scripts" ("build_id", "inserted_at", "name", "status", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [79, {{2015, 4, 22}, {17, 46, 57, 0}}, "saybacon", "running", {{2015, 4 , 22}, {17, 46, 57, 0}}] (0.7ms) [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] COMMIT [] (0.8ms) [debug] BEGIN [] (0.2ms) [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.7ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.7ms) [debug] INSERT INTO "logs" ("inserted_at", "script_id", "stdio", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 7, "--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === R unning command: echo bacon\n", {{2015, 4, 22}, {17, 46, 57, 0}}] (0.9ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.6ms) [debug] COMMIT [] (0.5ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.5ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (1.0ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 51] (0.5ms) [debug] COMMIT [] (0.4ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "saybacon"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.6ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.5ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.4ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) '\a' (0.4ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 7, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo bacon\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m bacon\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 52] (0.3ms) [debug] COMMIT [] (0.3ms) [info] GET /projects/ExampleProject/branches/master/builds/64/config [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.4ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.3ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.4ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n", {{2015, 4, 2 2}, {17, 46, 57, 0}}, 51] (0.5ms) [debug] COMMIT [] (0.4ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.config/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.6ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.4ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.6ms) [debug] SELECT c0."id", c0."raw_body", c0."build_id", c0."inserted_at", c0."updated_at" FROM "config_files" AS c0 WHERE (c0."build_id" IN ($1)) 'O' (0.6ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.4ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.4ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.5ms) [debug] BEGIN [] (0.3ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: ls\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 51] (0.3ms) [debug] COMMIT [] (0.3ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "script_vars"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.4ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.4ms) [debug] BEGIN [] (0.2ms) [debug] INSERT INTO "scripts" ("build_id", "inserted_at", "name", "status", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [79, {{2015, 4, 22}, {17, 46, 57, 0}}, "script_vars", "running", {{2015 , 4, 22}, {17, 46, 57, 0}}] (0.4ms) [debug] COMMIT [] (0.4ms) [debug] BEGIN [] (0.2ms) [debug] INSERT INTO "logs" ("inserted_at", "script_id", "stdio", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 8, "--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === R unning command: echo $ANOTHER_VAR\n", {{2015, 4, 22}, {17, 46, 57, 0}}] (0.3ms) [debug] COMMIT [] (0.3ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.4ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.5ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.5ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.6ms) [debug] BEGIN [] (0.3ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: ls\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m somefile.txt\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 51] (0.4ms) [debug] COMMIT [] (0.3ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "script_vars"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.4ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.4ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.3ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) '\b' (0.5ms) [debug] BEGIN [] (0.3ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 8, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo $ANOTHER_VAR\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m This overrides the global var\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 53] (0.5ms) [debug] COMMIT [] (0.4ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.3ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.5ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: ls\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $VAR_1\n", {{2015, 4, 22}, { 17, 46, 57, 0}}, 51] (0.6ms) [debug] COMMIT [] (0.3ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "script_vars"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.5ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.5ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) '\b' (0.5ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 8, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo $ANOTHER_VAR\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m This overrides the global var\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $SOMETHING_ELSE\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 53] (0.3ms) [debug] COMMIT [] (0.3ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.6ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.4ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.8ms) [debug] BEGIN [] (0.4ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: ls\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $VAR_1\n--> 2015/04/22 12:46 :57 \e[32mstdout\e[0m This is VAR_1.\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 51] (0.6ms) [debug] COMMIT [] (0.6ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "script_vars"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.7ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.5ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.4ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) '\b' (0.4ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 8, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo $ANOTHER_VAR\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m This overrides the global var\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $SOMETHING_ELSE\n-- > 2015/04/22 12:46:57 \e[32mstdout\e[0m Hello\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 53] (0.5ms) [debug] COMMIT [] (0.6ms) [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.4ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.4ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.3ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.3ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.4ms) [debug] BEGIN [] (0.2ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: ls\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $VAR_1\n--> 2015/04/22 12:46 :57 \e[32mstdout\e[0m This is VAR_1.\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $ANOTHER_VAR\n", {{2015, 4, 22}, {17, 46, 57, 0}}, 51] (0.4ms) [debug] COMMIT [] (0.3ms) [info] PUT /projects/ExampleProject/branches/master/builds/64/log [info] Processing by Rabbitci.BuildController.log_put/2 Parameters: %{"branch_name" => "master", "build_number" => "64", "format" => "json", "project_name" => "ExampleProject", "script" => "main"} Pipelines: [:api] [debug] SELECT p0."id", p0."name", p0."repo", p0."inserted_at", p0."updated_at" FROM "projects" AS p0 WHERE (p0."name" = $1) ["ExampleProject"] (0.5ms) [debug] SELECT b0."id", b0."name", b0."exists_in_git", b0."project_id", b0."inserted_at", b0."updated_at" FROM "branches" AS b0 WHERE ((b0."name" = $1) AND (b0."project_id" = $2)) ["master", 2] (0.4ms) [debug] SELECT b0."id", b0."build_number", b0."start_time", b0."finish_time", b0."commit", b0."branch_id", b0."inserted_at", b0."updated_at" FROM "builds" AS b0 WHERE ((b0."branch_id" = $1) AND (b0."build _number" = $2)) [2, 64] (0.4ms) [debug] SELECT s0."id", s0."status", s0."name", s0."build_id", s0."inserted_at", s0."updated_at" FROM "scripts" AS s0 WHERE (s0."build_id" IN ($1)) ORDER BY s0."build_id" 'O' (0.4ms) [debug] SELECT l0."id", l0."stdio", l0."script_id", l0."inserted_at", l0."updated_at" FROM "logs" AS l0 WHERE (l0."script_id" IN ($1)) [6] (0.4ms) [debug] BEGIN [] (0.4ms) [debug] UPDATE "logs" SET "inserted_at" = $1, "script_id" = $2, "stdio" = $3, "updated_at" = $4 WHERE "id" = $5 RETURNING "id" [{{2015, 4, 22}, {17, 46, 57, 0}}, 6, "--> 2015/04/22 12:46:57 \e[32mstdout\e [0m === Running command: echo cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m cool, it works!\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: touch somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: ls\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m somefile.txt\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $VAR_1\n--> 2015/04/22 12:46 :57 \e[32mstdout\e[0m This is VAR_1.\n--> 2015/04/22 12:46:57 \e[32mstdout\e[0m === Running command: echo $ANOTHER_VAR\n--> 2015/04/22 12:46:58 \e[32mstdout\e[0m This is another variable\n", {{2015, 4, 22 }, {17, 46, 57, 0}}, 51] (0.7ms) [debug] COMMIT [] (0.8ms) Real-time* log uploading Logs are uploaded