-
Notifications
You must be signed in to change notification settings - Fork 39
CYP-442 sync cli part 1 #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ss-cli into CYP_442_sync_cli_part_1
@@ -58,7 +58,7 @@ module.exports = function run(args) { | |||
// Create build | |||
return build.createBuild(bsConfig, zip).then(function (data) { | |||
let message = `${data.message}! ${Constants.userMessages.BUILD_CREATED} with build id: ${data.build_id}`; | |||
let dashboardLink = `${Constants.userMessages.VISIT_DASHBOARD} ${config.dashboardUrl}${data.build_id}`; | |||
let dashboardLink = `${Constants.userMessages.VISIT_DASHBOARD} ${data.dashboard_url}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Is the data.dashboard_url
the complete URL? 🤩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
printSpecsStatus(); | ||
}).then((data) => { | ||
exports.pollBuildStatus = (bsConfig, buildDetails) => { | ||
logBuildDetails(bsConfig, buildDetails); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we cannot use promise based calls here? printSpecsStatus in next call would require bsConfig and buildId for polling. I guess that can be taken from buildDetails
then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need promise call here as
- There are no async calls
- The end is always
resolve
and never areject
No description provided.