mirror of
https://github.com/certd/certd.git
synced 2026-04-25 05:07:25 +08:00
chore: 1
This commit is contained in:
@@ -138,7 +138,7 @@ export abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
|
|||||||
const cert: CertInfo = certReader.toCertInfo();
|
const cert: CertInfo = certReader.toCertInfo();
|
||||||
this.cert = cert;
|
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) {
|
if (isNew) {
|
||||||
const applyTime = dayjs(certReader.detail.validity.notBefore).format("YYYYMMDD_HHmmss");
|
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) {
|
async run(id: number, triggerId: string) {
|
||||||
const entity: PipelineEntity = await this.info(id);
|
const entity: PipelineEntity = await this.info(id);
|
||||||
if (entity.disabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const pipeline = JSON.parse(entity.content);
|
const pipeline = JSON.parse(entity.content);
|
||||||
|
|
||||||
if (!pipeline.stages || pipeline.stages.length === 0) {
|
if (!pipeline.stages || pipeline.stages.length === 0) {
|
||||||
@@ -243,6 +241,12 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (triggerType === 'timer') {
|
||||||
|
if (entity.disabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const onChanged = async (history: RunHistory) => {
|
const onChanged = async (history: RunHistory) => {
|
||||||
//保存执行历史
|
//保存执行历史
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user