构建maven项目突然失败了,报错如下:
SSH: Current build result is [NOT_BUILT], not going to run
百度了一下,找到了解决方法,原因说是jenkins的bug,ssh认为打包构建失败。
利用官网提供的插件Fail The Build,设置或更改构建状态
官网说明地址:https://plugins.jenkins.io/fail-the-build-plugin/
参考:https://github.com/bap2000/jenkins-publish-over-ssh-plugin/issues/10