Jenkins+Spring Boot構建部署

本地環境:macOS
服務器:騰訊雲ubuntujava

原本jenkins是部署在騰訊雲的,可是發現最低配置根本構建不了,坑!cpu狂飆。。。懟騰訊雲往後再來先幹正事。ubuntu

本地環境搭建

jdk

Jenkins

$ Java -jar jenkins.war // 啓動Jenkins

ps:並非每一個版本都支持啓動Jenins因此我這裏報錯了bash

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服務器

相關文章
相關標籤/搜索