Skip to content

Throw if a deployment command fails#54

Closed
faceleg wants to merge 1 commit intomotdotla:masterfrom
faceleg:feature/deploy-fail-throw
Closed

Throw if a deployment command fails#54
faceleg wants to merge 1 commit intomotdotla:masterfrom
faceleg:feature/deploy-fail-throw

Conversation

@faceleg
Copy link

@faceleg faceleg commented Jan 24, 2016

CircleCi claims my deployments are a success even if they are made of fail.

Crudely, I've updated the deploy error handlers to throw instead of console.log the error.

var context = {
succeed: function (result) {
console.log('succeed: ' + JSON.stringify(result));
console.log('succeed: ' + result);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask why you remove the JSON.stringify here? I'm assuming this was added so the logging would dump all data instead of to a certain nested limit.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, should not have been removed

This was referenced Apr 8, 2016
@DeviaVir
Copy link
Collaborator

Merged in #72 with these changes, let me know if they work out for your usecase.

@DeviaVir DeviaVir closed this Apr 11, 2016
@faceleg faceleg deleted the feature/deploy-fail-throw branch April 11, 2016 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants