Authored by 沈志敏

fix bug 邮件发送两次

... ... @@ -29,6 +29,7 @@ class Check {
from: 'automan@yoho.cn',
to: 'webtech@yoho.cn',
subject: `${projectname}:${branch} 代码检查一览`
subject: `${projectname}:${branch} 代码检查一览 ` + moment().format('YYYY-MM-DD HH:mm:ss')
};
this.id = `${projectname}_${branch}_${this.buildTime}`;
... ...
... ... @@ -99,11 +99,16 @@ module.exports = {
rule.hour = 23;
rule.minute = 59;  
schedule.scheduleJob(rule, function() {
let running = {};
projects.forEach(async(p) => {
if (p.name !== 'yohobuywap-node') { // todo 暂时只检查wap站
return;
}
new Check(p.name, p.gitlab, 'release/5.6').check();
if (!running[p.name]) {
running[p.name] = true;
new Check(p.name, p.gitlab, 'release/5.6').check();
}
});
});
},
... ...