mirror of https://github.com/certd/certd
chore: 1
parent
59897c4cea
commit
5362df55f4
|
@ -138,7 +138,7 @@ export abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
|
|||
const cert: CertInfo = certReader.toCertInfo();
|
||||
this.cert = cert;
|
||||
|
||||
this._result.pipelineVars.certExpiresTime = dayjs(certReader.detail.validity.notAfter).unix();
|
||||
this._result.pipelineVars.certExpiresTime = dayjs(certReader.detail.validity.notAfter).valueOf();
|
||||
|
||||
if (isNew) {
|
||||
const applyTime = dayjs(certReader.detail.validity.notBefore).format("YYYYMMDD_HHmmss");
|
||||
|
|
|
@ -229,9 +229,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||
|
||||
async run(id: number, triggerId: string) {
|
||||
const entity: PipelineEntity = await this.info(id);
|
||||
if (entity.disabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
const pipeline = JSON.parse(entity.content);
|
||||
|
||||
if (!pipeline.stages || pipeline.stages.length === 0) {
|
||||
|
@ -243,6 +241,12 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||
return;
|
||||
}
|
||||
|
||||
if (triggerType === 'timer') {
|
||||
if (entity.disabled) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const onChanged = async (history: RunHistory) => {
|
||||
//保存执行历史
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue