File tree Expand file tree Collapse file tree 1 file changed +37
-3
lines changed Expand file tree Collapse file tree 1 file changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,42 @@ const config = require("./config"),
66 request = require ( 'request' ) ;
77
88exports . pollBuildStatus = ( bsConfig , buildId ) => {
9+ logBuildDetails ( ) . then ( ( data ) => {
10+ printSpecsStatus ( ) ;
11+ } ) . then ( ( data ) => {
12+ printSpecsRunSummary ( ) ;
13+ } ) . then ( ( data ) => {
14+ printFailedSpecsDetails ( ) ;
15+ } ) . then ( ( data ) => {
16+ printBuildDashboardLink ( buildId ) ;
17+ } ) . then ( ( data ) => {
18+ // success case!
19+ return 0 ; // exit code 0
20+ } ) . catch ( ( err ) => {
21+ // failed case!
22+ return 1 ; // exit code 1
23+ } ) ;
24+ } ;
25+
26+ let logBuildDetails = ( ) => {
27+
28+ } ;
29+
30+ let printSpecsStatus = ( ) => {
31+
32+ } ;
33+
34+ let printSpecsRunSummary = ( ) => {
35+
36+ } ;
37+
38+ let printFailedSpecsDetails = ( ) => {
39+
40+ } ;
941
10- logger . info ( Constants . userMessages . BUILD_REPORT_MESSAGE ) ;
11- logger . info ( `${ config . dashboardUrl } ${ buildId } ` ) ;
12- return 0 ;
42+ let printBuildDashboardLink = ( buildId ) => {
43+ new Promise ( ( resolve , reject ) => {
44+ logger . info ( Constants . userMessages . BUILD_REPORT_MESSAGE ) ;
45+ logger . info ( `${ config . dashboardUrl } ${ buildId } ` ) ;
46+ } ) ;
1347} ;
You can’t perform that action at this time.
0 commit comments