pull/265/head
xiaojunnuo 2024-11-26 15:21:22 +08:00
parent 642f57ff6d
commit 90a8f818bf
1 changed files with 8 additions and 8 deletions

View File

@ -366,17 +366,17 @@ export class Executor {
let content = ""; let content = "";
const errorMessage = error?.message; const errorMessage = error?.message;
if (when === "start") { if (when === "start") {
subject = `【Certd】开始执行${this.pipeline.id}${this.pipeline.title}`; subject = `【Certd】开始执行${this.pipeline.title}${this.pipeline.id}`;
content = `buildId:${this.runtime.id}`; content = `流水线ID:${this.pipeline.id}运行ID:${this.runtime.id}`;
} else if (when === "success") { } else if (when === "success") {
subject = `【Certd】执行成功${this.pipeline.id}${this.pipeline.title}`; subject = `【Certd】执行成功${this.pipeline.title}${this.pipeline.id}`;
content = `buildId:${this.runtime.id}`; content = `流水线ID:${this.pipeline.id}运行ID:${this.runtime.id}`;
} else if (when === "turnToSuccess") { } else if (when === "turnToSuccess") {
subject = `【Certd】执行成功失败转成功${this.pipeline.id}${this.pipeline.title}`; subject = `【Certd】执行成功失败转成功${this.pipeline.title}${this.pipeline.id}`;
content = `buildId:${this.runtime.id}`; content = `流水线ID:${this.pipeline.id}运行ID:${this.runtime.id}`;
} else if (when === "error") { } else if (when === "error") {
subject = `【Certd】执行失败${this.pipeline.id}${this.pipeline.title}`; subject = `【Certd】执行失败${this.pipeline.title}${this.pipeline.id}`;
content = `buildId:${this.runtime.id}\nerror:${error.message}`; content = `流水线ID:${this.pipeline.id}运行ID:${this.runtime.id}\n错误详情:${error.message}`;
} else { } else {
return; return;
} }