
jenkins
天涯若风
幽冥使者
展开
-
构建项目报错:use -source 7 or higher to enable strings in switch 解决方法
使用Jenkins构建项目时,出现了以下错误信息:use -source 7 or higher to enable strings in switch意思就是代码中使用了JDK1.7以上的特性(switch catch,使用了字符串类型),而maven的编译版本低于1.7,如1.5,1.6,导致构建的时候报错。 解决思路(针对maven项目):1. 查看报错项目的pom文件,...原创 2018-08-02 10:25:16 · 889 阅读 · 2 评论 -
Exec exit status not zero. Status [126] 解决方法
SSH: Connecting from host [web.beijing]SSH: Connecting with configuration [192.168.1.21测试环境] ...SSH: EXEC: STDOUT/STDERR from command [/xxxx] ...bash: /xx/xx/xx.sh: Ȩ����SSH: EXEC: completed aft...原创 2018-09-05 19:29:58 · 16211 阅读 · 6 评论 -
jenkins构建报错:maven-release-plugin:2.5.3:pom.xml:modified
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:branch (default-cli) on project newform_web: Cannot prepare the release because you have local modifications...原创 2019-04-24 11:28:05 · 1776 阅读 · 0 评论