mirror of https://github.com/certd/certd
chore:
parent
642f57ff6d
commit
90a8f818bf
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue