Skip to content

Commit 3bb6a6b

Browse files
committed
Added sync messages in parts
1 parent b367ec3 commit 3bb6a6b

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

bin/helpers/syncRunner.js

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,42 @@ const config = require("./config"),
66
request = require('request');
77

88
exports.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
};

0 commit comments

Comments
 (0)