GitLab+Jenkins持续集成+自动化部署按照上述提示在对应服务器输入一下代码
[root@localhost My-freestyle-job]
The authenticity of host '192.168.0.* (192.168.0.*)' can't be established.
ECDSA key fingerprint is SHA256:h6Oat9ScX90yd0EpHlQ//A6PT+fkgdyn6mjcZgcjUU4.
ECDSA key fingerprint is MD5:66:40:d7:4e:a7:5a:6a:ab:5b:86:6d:c3:37:24:7d:ec.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.*' (ECDSA) to the list of known hosts.
5393c137090e3c9c0f81dbc6e3f739535ec448ae refs/heads/master
看到文件已经同步到jenkins中
[root@localhost My-freestyle-job]
总用量 8
-rw-r--r--. 1 root root 2335 2月 21 17:20 pom.xml
-rw-r--r--. 1 root root 1776 2月 21 17:20 pom.xml.bak
drwxr-xr-x. 3 root root 18 2月 21 17:20 src
drwxr-xr-x. 5 root root 63 2月 21 17:20 target
Started by user admin
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/My-freestyle-job
Cloning the remote Git repository
Cloning repository git@192.168.0.*/uap.git
> /usr/bin/git init /var/lib/jenkins/workspace/My-freestyle-job
Fetching upstream changes from git@192.168.0.*:*/uap.git
> /usr/bin/git --version
> /usr/bin/git fetch --tags --progress git@192.168.0.*/uap.git +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git config remote.origin.url git@192.168.0.31:eetrust/uap.git
> /usr/bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git config remote.origin.url git@192.168.0.31:*/uap.git
Fetching upstream changes from git@192.168.0.*:*/uap.git
> /usr/bin/git fetch --tags --progress git@192.168.0.*:eetrust/uap.git +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git rev-parse refs/remotes/origin/master^{commit}
> /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit}
Checking out Revision 5393c137090e3c9c0f81dbc6e3f739535ec448ae (refs/remotes/origin/master)
> /usr/bin/git config core.sparsecheckout
> /usr/bin/git checkout -f 5393c137090e3c9c0f81dbc6e3f739535ec448ae
Commit message: "Initial commit"
First time build. Skipping changelog.
[My-freestyle-job] $ /bin/sh -xe /tmp/jenkins5826789700439418225.sh
+ pwd
/var/lib/jenkins/workspace/My-freestyle-job
Finished: SUCCESS
|