@@ -5,7 +5,7 @@ const qs = require('querystring');
55const chalk = require ( 'chalk' ) ;
66const { appendFile } = require ( '../lib/file' ) ;
77
8- const DOMAIN = 'ci.nodejs.org' ;
8+ const CI_DOMAIN = 'ci.nodejs.org' ;
99
1010const SUCCESS = 'SUCCESS' ;
1111const FAILURE = 'FAILURE' ;
@@ -33,11 +33,11 @@ const BUILD_TREE = 'result,runs[url,number,result]';
3333const LINTER_TREE = 'result,url,number' ;
3434
3535function getPath ( url ) {
36- return url . replace ( `https://${ DOMAIN } /` , '' ) . replace ( 'api/json' , '' ) ;
36+ return url . replace ( `https://${ CI_DOMAIN } /` , '' ) . replace ( 'api/json' , '' ) ;
3737}
3838
3939function getUrl ( path ) {
40- return `https://${ DOMAIN } /${ getPath ( path ) } ` ;
40+ return `https://${ CI_DOMAIN } /${ getPath ( path ) } ` ;
4141}
4242
4343function resultName ( result ) {
@@ -87,7 +87,7 @@ class Job {
8787
8888 get jobUrl ( ) {
8989 const { path } = this ;
90- return `https://${ DOMAIN } /${ path } ` ;
90+ return `https://${ CI_DOMAIN } /${ path } ` ;
9191 }
9292
9393 get apiUrl ( ) {
@@ -98,12 +98,12 @@ class Job {
9898
9999 get consoleUrl ( ) {
100100 const { path } = this ;
101- return `https://${ DOMAIN } /${ path } consoleText` ;
101+ return `https://${ CI_DOMAIN } /${ path } consoleText` ;
102102 }
103103
104104 get consoleUIUrl ( ) {
105105 const { path } = this ;
106- return `https://${ DOMAIN } /${ path } console` ;
106+ return `https://${ CI_DOMAIN } /${ path } console` ;
107107 }
108108
109109 async getBuildData ( ) {
@@ -526,6 +526,10 @@ const FAILURE_PATTERNS = [{
526526 pattern : / F A T A L : .+ / g,
527527 filter : pickReason ( - 1 , 0 , 5 ) ,
528528 name : 'build failure'
529+ } , {
530+ pattern : / e r r o r : .+ / g,
531+ filter : pickReason ( - 1 , 0 , 5 ) ,
532+ name : 'build failure'
529533} , {
530534 pattern : / m a k e .* : w r i t e e r r o r / mg,
531535 filter : pickReason ( 0 , 0 , 3 ) ,
0 commit comments