Jenkins增加node節點
阿新 • • 發佈:2019-01-24
setp 1 新增節點
setp 2 配置
1. Launch method 選擇Launch slaver agents via SSH
2. 填寫主機ip
3. 新增Credentiais,也就是主機的username和password
4. Host Key Verification Strategy 選擇NON哪一個
setp 3 配置 Advanced
這裡主要是配置node節點上的java所在目錄,不然會報如下錯誤,這就是因為jenkins找不到node上的java安裝目錄
Couldn’t figure out the Java version of java
bash: java: 未找到命令
[02/28/18 15:19:44] [SSH] Checking java version of /usr/bin/java
Couldn’t figure out the Java version of /usr/bin/java
bash: /usr/bin/java: 沒有那個檔案或目錄
[02/28/18 15:19:44] [SSH] Checking java version of /usr/java/default/bin/java
Couldn’t figure out the Java version of /usr/java/default/bin/java
bash: /usr/java/default/bin/java: 沒有那個檔案或目錄
[02 /28/18 15:19:44] [SSH] Checking java version of /usr/java/latest/bin/java
Couldn’t figure out the Java version of /usr/java/latest/bin/java
bash: /usr/java/latest/bin/java: 沒有那個檔案或目錄
[02/28/18 15:19:44] [SSH] Checking
setp 4 sava & launch
可以看到 正在拷貝最新版本的 slave.jar
,以及下邊的agent successfully connected and online