Updated Executor and Runner
This commit is contained in:
parent
6386294887
commit
766610d14c
6 changed files with 8 additions and 3984 deletions
BIN
bin/executor
BIN
bin/executor
Binary file not shown.
3982
dist/bundles/qualiteer-executor.js
vendored
3982
dist/bundles/qualiteer-executor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -55,7 +55,7 @@ export default class Executor {
|
||||||
|
|
||||||
onClose() {
|
onClose() {
|
||||||
console.log("Server disconnected, terminating process.");
|
console.log("Server disconnected, terminating process.");
|
||||||
this.proc.kill("SIGINT");
|
this.proc.kill("SIGKILL");
|
||||||
}
|
}
|
||||||
|
|
||||||
onProcClose(code) {
|
onProcClose(code) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import commonjs from "@rollup/plugin-commonjs";
|
||||||
import { terser } from "rollup-plugin-terser";
|
import { terser } from "rollup-plugin-terser";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "lib/core/executor.js",
|
input: "lib/jobs/job-executor.js",
|
||||||
output: {
|
output: {
|
||||||
file: "dist/bundles/qualiteer-executor.js",
|
file: "dist/bundles/qualiteer-executor.js",
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
|
|
|
@ -5,7 +5,7 @@ import single from "./single.js";
|
||||||
import failing from "./failing.js";
|
import failing from "./failing.js";
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
const endLiveCount = 2;
|
const endLiveCount = 5;
|
||||||
const reportingUrl = `${process.env.QUALITEER_URL}/api/dev/rabbit/TestResults`;
|
const reportingUrl = `${process.env.QUALITEER_URL}/api/dev/rabbit/TestResults`;
|
||||||
// Pull args
|
// Pull args
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
|
|
|
@ -18,6 +18,8 @@ const job = {
|
||||||
name: "testing",
|
name: "testing",
|
||||||
image: "node",
|
image: "node",
|
||||||
};
|
};
|
||||||
await primary.newPipelineJob(job, null, () =>
|
|
||||||
|
const launchJob = () => primary.newPipelineJob(job, null, () =>
|
||||||
console.log("Primary Job Concluded")
|
console.log("Primary Job Concluded")
|
||||||
);
|
);
|
||||||
|
launchJob();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue