本地环境:macOS
服务器:腾讯云ubuntu

本来jenkins是部署在腾讯云的,但是发现最低配置根本构建不了,坑!cpu狂飙。。。怼腾讯云日后再来先干正事。

本地环境搭建

jdk

Jenkins

$ Java -jar jenkins.war // 启动Jenkins

ps:并不是每个版本都支持启动Jenins所以我这里报错了

RusselldeMacBook-Pro:Jenkins russell$ Java -jar jenkins.war
2月 20, 2019 2:35:45 下午 Main verifyJavaVersion
严重: Running with Java class version 54 which is not in the list of supported versions: [52, 55]. Run with the --enable-future-java flag to enable such behavior. See https://jenkins.io/redirect/java-support/
java.lang.UnsupportedClassVersionError: 54.0
    at Main.verifyJavaVersion(Main.java:174)
    at Main.main(Main.java:142)
Jenkins requires Java versions [8, 11] but you are running with Java 10 from /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
java.lang.UnsupportedClassVersionError: 54.0
    at Main.verifyJavaVersion(Main.java:174)
    at Main.main(Main.java:142)

根据报错信息重新装了jdk8


yujs
42 声望3 粉丝

人体雕刻家,码农。