question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exit with 0 even on failure

See original GitHub issue

Hi all!

I’m using mup in a continuous delivery environment. Sometimes mup deploy fails (wrong on my side) but but no failure is reported by my CD system.

It seems mup deploy exits with 0 even on failure. Is it for reasons or it can be edited to report the failure to the delivery system?

Log example:

$ mup deploy
Building App Bundle Locally

Started TaskList: Pushing Meteor
[guy] - Pushing Meteor App Bundle to The Server
[guy] x Pushing Meteor App Bundle to The Server: FAILED
    No such file
(node:41) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: No such file
Creating cache deploy-demo/deployment...
node_modules/: found 17061 matching files          
Build succeeded

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
aurocommented, Oct 13, 2016

Production quality meteor deployments? Where?

Several jenkins automated builds are failing now because of this return code mismatch.

Help guys, please!

1reaction
zoderncommented, Aug 23, 2017

In 1.3.1, the error code will be 1 when a task list fails.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to return exit code 0 from a failed command
Simply append return 0 to the function to force a function to always exit successful. function a() { ls aaaaa 2>&1 return 0...
Read more >
Why is exit code 0 even though the command is wrong?
Try 'id --help' for more information. Your command failed to execute with exit code 0. Your username is. I'm guessing that in some...
Read more >
Bash: Run an executable giving a good exit status - Server Fault
I want to run an executable in Linux, and regardless of the exit status that it returns, I want to return a good...
Read more >
Make a Shell Command Always Succeed | Peaceful Revolution
In bash and many other shells, zero is called successful exit status code, whereas any non-zero codes are failure exit codes.
Read more >
Linux bash exit status and how to set exit status in bash
All of the Bash builtins return exit status of zero if they succeed and a non-zero status on failure. How do I display...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found