分类 jenkins 下的文章

源地址:
https://updates.jenkins-zh.cn/update-center.json

因为jenkins对插件源做了证书认证,所以光设置源地址还不行,还得添加一份证书到指定目录

证书:
https://github.com/jenkins-zh/mirror-adapter/blob/master/rootCA/mirror-adapter.crt

对应目录:
/var/jenkins_home/war/WEB-INF/update-center-rootCAs

参考资料:
https://jenkins-zh.cn/tutorial/management/plugin/update-center/
https://community.jenkins-zh.cn/t/jenkins/26/20

script {
    remote = [:]
    remote.name = "node-1"
    remote.host = "?.yqmiot.com"
    remote.user = "root"
    remote.password = "********"
    remote.port = 2333
    remote.allowAnyHosts = true
    def path = sshCommand remote: remote, command: "pwd"
    echo "pwd: ${path}"
}