1,进入添加节点页面
Dashboard=>Manage Jenkins=>Nodes=>New Node
2,配置

3,添加凭证

主要是以上三个四个参数:
- 选择使用密码连接
- 远程节点的登录用户名
- 远程几点的登录密码
- 描述清楚这个凭证,要不然最后凭证太多,无法区分,你会疯掉的
4,save
问题一:java版本不匹配
错误展示:
Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
出现以上错误主要原因是java版本不匹配,最快的解决办法是将添加的节点的java版本设置成和jenkins节点一样的。
注意:
java安装到remot root directory目录下,要不然系统找不到java
935

被折叠的 条评论
为什么被折叠?



