Is it possible to run the deployment phase even when a Travis build fail?

谁说我不能喝 提交于 2019-12-24 00:16:01

问题


Is it possible to run the deployment phase in Travis CI even when the build is reporting a failure?


回答1:


No. Deployment does not happen if the script fails.

If you want to execute a block of code regardless of the result, use after_script and a custom script.

https://docs.travis-ci.com/user/deployment/custom/ describes how to deploy with after_success, but the idea is the same.



来源:https://stackoverflow.com/questions/38916480/is-it-possible-to-run-the-deployment-phase-even-when-a-travis-build-fail

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!