一 管理插件
路径:系统管理- 管理插件
- 部分插件安装无需重启Jenkins
- 删除插件并不会立即生效
- 最佳实践:仅选择必要的插件,否则会影响Jenkins加载速度
二 管理节点
路径: 系统管理- 管理节点
节点(Node/Slave)的连接方式
链接需要安装jdk
[root@centos7 ~]# yum -y install java-1.8.0-openjdk-devel
2.1.1 ssh链接
添加凭证
2.1.2 通过ssh链接slave
生成ssh-key:
[root@centos7 ~]# ssh-keygen -t rsa -C "yanshicheng socloud@sina.com"
复制私钥:
[root@centos7 ~]# cat .ssh/id_rsa -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAxMvXS5khkpVv16GYFrJP9qSar/b5+Gmu7SgHJt8yztdVI7Kj rTam6LJhCGbexVw+9Gvb8hndDg7i33CnK/HszPgrqoxTWs55gk6JVarwJV8BLYNx 22HZdXXJsehZmOOSu/bMy/weWXOavpLKzC2kTqJzrY61wVISRxE0Vogp8MDfFylJ sDiDgVjpAP4xiz4ZVrjqwXMrFKzTHPWpy9i6fBPEfuKDfvd0GFHZ12Ekm5lyLSkq 7g8+iQ7E61i8kepreTx+bDsbNTyL0AkQ/iE7FjOLNbBetMiyaRXx7yDGKJPep7E/ 4g8LF/XXw3ZM2ejRRKKDrOfS1Log6PrGOnfV5wIDAQABAoIBAGgqQRYZwsR05tMr DHaPAXZaoCodvyg2wEl1U3vGznzfS4huqOYpNGWc7XFmCepLLmNvp+bYu8ISLRH5 7fJ7xkyj23EVf5VkDrrjWRwIM76EL/poRd7KRzE+HHlXs/0SD/v/4VzjYSkV4MWY q1Exo3Of1zz5eckO6O/G8n4O6qwsbPn4E2iTeydDPZ/TeMc/F+SilVhlrd6p3tlx FwTVWX9zqTMG+eAy/y9DD+HQjhPSjBuA+ZBgSAF/MmvZCND3FXpnlYxCbrEfXg7A LsnIaPqw9fBzp//6woPKrVqvF1vsTI3+V8uHqzFJ3etAQT0XYmcUYRKNTMNSMNYG eMXfmmkCgYEA5gdJaTMuKVsTjyNYq4qeoh2U5i1TZa17VFjno/DUcI8MGkqGw+z1 rWfsrRo3nFTcXlR4CGa7gGYOJtuv81KV0B1iUgsGWKFB/cidMITPlCduOiuC6WgU UyWrAonbgXDepawdg06YSD/bB3JugbIQ5f7rCpfbbtAKp2K8BZfjXMUCgYEA2wQD wyu63Zvdt2t411/222ReT8Hk0Z0+z+IKIz4iCNgolOTPQFFvIMmxCeZFr/KagsIM xwmzbVvAhiDBTfO5fH4b7aMlMkDdxaKnreSAqd5/pWGSp6e1GV1XfPX216LCTbXp dnBTMTXV/rhgcblTToGCiyJFNpr9zasAf1mr6rsCgYBb0pLSZLTLm2ieXdy6dVZH nolerL86ulqd2/NztOIIoIGTSSastT2I4BBRNUL3q8Rf/1X+/ItigNqrVkzRU6kr 717dIzuAS7bdCKT+xjVajbbpj47tfzeFzWaLV96AuD6YYbFSRiBxztOvEFXefedS +ER48Q+OF4v5L2egz/XZhQKBgBw1ayqjIkFSxv7N19WdpZTiW4dYSNl6sFFkIrwh T47mEGwFAHCfTHnjoGrO/uDHlYEL70tfg32tWKGt7FfW8WgIch5saekME8RVy9UI 3k2Cu9wYMiRn5Fps/Ey6/V0OuIn7ySMZGo33CiXxp3JeVU2CPsce1d1PnyrzQHAm o47rAoGBAM7hCkLXYdWvOBZeUspMVcS+qWn0KVAHkyX7nY+6EtRqzIOE76EHedvh tobU7rp2qvhyGQLGSuFZIvV3NovkPBLp15eiRosIAi69p+STOz3E9Daebyux0Try LD1m4RDxg6isGwgHA0zXYXoxwzAeNFNi+WMFvsCvjov4y3Q1esQi -----END RSA PRIVATE KEY-----
将公钥拷贝到authorized_keys文件
[root@centos7 .ssh]# cat id_rsa.pub >> authorized_keys [root@centos7 .ssh]# chmod 600 authorized_keys