crabatool 1.0.807 → 1.0.808
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tool/checkjs.js +3 -3
package/package.json
CHANGED
package/tool/checkjs.js
CHANGED
|
@@ -526,13 +526,13 @@ module.exports.start = async function() {
|
|
|
526
526
|
// 推送到钉钉
|
|
527
527
|
postWebhooks(id, reportUrl, webhookList);
|
|
528
528
|
|
|
529
|
-
writeAbortFile(errCount);
|
|
529
|
+
writeAbortFile(errCount, reportUrl);
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
function writeAbortFile(errCount) {
|
|
532
|
+
function writeAbortFile(errCount, reportUrl) {
|
|
533
533
|
var s = path.join(os.tmpdir(), 'checkjsAbort');
|
|
534
534
|
if (errCount > 0 && config.abortUrl) {
|
|
535
|
-
var tips =
|
|
535
|
+
var tips = `警告!!!代码检测发现异常,已终止当前构建任务。请修复代码后重新构建。[报告详情](${reportUrl})`;
|
|
536
536
|
utils.postWeebhooks(tips, true);
|
|
537
537
|
|
|
538
538
|
console.log(tips);
|