幾天前公司 build server VM 掛點,雖然後來搶救回來,但在搶救回來之前以防萬一還是研究了一下怎麼重新安裝 Jenkins,筆記如下
VM環境
Ubuntu 18.04
JDK 8
Jenkins 使用預設版本 2.289.3
安裝 JDK 8
因為 Jenkins 是以 JAVA 編寫的,所以需先安裝 JAVA環境,原本的版本較舊用的是 JDK8,暫不升級
sudo apt install -y openjdk-8-jdk
設定環境變數
sudo gedit /etc/profile