Log correlation id

This commit is contained in:
Varun Sharma 2021-11-08 07:55:07 -08:00
commit dd6688f0cc
3 changed files with 5 additions and 3 deletions

3
dist/pre/index.js vendored
View file

@ -2414,7 +2414,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
.on("error", (err) => { })
.on("finish", () => __awaiter(void 0, void 0, void 0, function* () {
filePath.close();
core.notice(correlation_id, { title: "1234" });
//core.notice(correlation_id, { title: "1234" });
console.log(`Step Security Job Correlation ID: ${correlation_id}`);
external_child_process_namespaceObject.execSync(`cp ${__dirname}/agent /home/agent/agent`);
external_child_process_namespaceObject.execSync("chmod +x /home/agent/agent");
external_fs_.writeFileSync("/home/agent/agent.json", confgStr);

File diff suppressed because one or more lines are too long

View file

@ -40,7 +40,8 @@ import { v4 as uuidv4 } from "uuid";
.on("error", (err) => {})
.on("finish", async () => {
filePath.close();
core.notice(correlation_id, { title: "1234" });
//core.notice(correlation_id, { title: "1234" });
console.log(`Step Security Job Correlation ID: ${correlation_id}`);
cp.execSync(`cp ${__dirname}/agent /home/agent/agent`);
cp.execSync("chmod +x /home/agent/agent");