perf: 证书直接查看

This commit is contained in:
xiaojunnuo
2024-10-15 17:12:42 +08:00
parent 64c4933645
commit 5dde5bd3f7
13 changed files with 189 additions and 98 deletions
+4 -2
View File
@@ -307,13 +307,15 @@ export class Executor {
//更新pipeline vars
if (Object.keys(instance._result.pipelineVars).length > 0) {
// 判断 pipelineVars 有值时更新
const vars = await this.pipelineContext.getObj("vars");
let vars = await this.pipelineContext.getObj("vars");
vars = vars || {};
merge(vars, instance._result.pipelineVars);
await this.pipelineContext.setObj("vars", vars);
}
if (Object.keys(instance._result.pipelinePrivateVars).length > 0) {
// 判断 pipelineVars 有值时更新
const vars = await this.pipelineContext.getObj("privateVars");
let vars = await this.pipelineContext.getObj("privateVars");
vars = vars || {};
merge(vars, instance._result.pipelinePrivateVars);
await this.pipelineContext.setObj("privateVars", vars);
}
@@ -38,7 +38,7 @@ export class RunHistory {
start(runnable: Runnable): HistoryResult {
const now = new Date().getTime();
this.logs[runnable.id] = [];
this._loggers[runnable.id] = buildLogger((text) => {
this._loggers[runnable.id] = buildLogger((text: string) => {
this.logs[runnable.id].push(text);
});
const status: HistoryResult = {