4-15 Jenkins 自动化部署

导出项目

[root@xueshen65 test]# rm -rf xuegod-web/

[root@xueshen65 test]# git clone  http://192.168.43.66/xuegod/xuegod-web.git

正克隆到 'xuegod-web'...

Username for 'http://192.168.43.66': root

Password for 'http://[email protected]':

remote: Counting objects: 9, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 9 (delta 0), reused 0 (delta 0)

Unpacking objects: 100% (9/9), done.

安装插件


[root@xueshen65 ~]# ssh-keygen

公钥

[root@xueshen65 ~]# ls ~/.ssh/

id_rsa  id_rsa.pub

[root@xueshen65 ~]# cat  .ssh/id_rsa.pub 

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6BR3OWKJwyEgXZaau41C34GstZailjVDy2Bs13R5EfyOV8VWhXPfi6Akzme1hjsCio1rSvC7BQJrAL/WuZMk2qLV9Us+vmhs+okyM8r/hRaSlfrH0dQS3FILucnV5M/wmbIg0y4r7GndpqAxF9xuwT55uUSiTRJXMrdMPCRDQqkNpfW6CrgRWtF2/zoJOOcaH4wIO0cASC2Nl6h0hlXhuxSNaKlcKTsqDBuqKYy1qezJsvbAf0AOz2UPCqaXbt1jkzltrrvqw5ZZfn3z3b+LiB7vICxYOUIjgzWvhqViMLM2knCwaA2YusWE30bb


克隆成功

[root@xueshen65 test]# git clone [email protected]:xuegod/xuegod-web.git

正克隆到 'xuegod-web'...

The authenticity of host '192.168.43.66 (192.168.43.66)' can't be established.

ECDSA key fingerprint is SHA256:gyEBnaJ5T6r3f7c0xZjwi2a/ZvzNFZZZr5yNYJUMq4g.

ECDSA key fingerprint is MD5:4a:25:8b:ed:7b:59:04:a0:c9:02:3d:f5:d5:5b:10:8d.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '192.168.43.66' (ECDSA) to the list of known hosts.

remote: Counting objects: 9, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 9 (delta 0), reused 0 (delta 0)

接收对象中: 100% (9/9), done.

私钥

[root@xueshen65 ~]# cat .ssh/id_rsa

-----BEGIN RSA PRIVATE KEY-----

你可能感兴趣的:(4-15 Jenkins 自动化部署)