Aayush Anand
Aayush Anand

Reputation: 1224

How to kill travis build with exit code 0 using command?

Presently we are facing build failure problem in Travis because of https://github.com/travis-ci/travis-ci/issues/7702. I was just wondering if Travis has any command line option to kill it with exit code 0, then I can force travis to terminate 'after_success'. Will be a hacky way to deal with this situation until they solve this bug.

Upvotes: 6

Views: 3371

Answers (1)

joepd
joepd

Reputation: 4841

The shell function travis_terminate will help.

Alternatively, you can ensure to do set +e before the call to exit.

travis_terminate 0 is the best solution at the moment.

Upvotes: 9

Related Questions