設定 ssh 免密碼驗證, 並在命令列下以 jenkins 帳號測試
Started by user anonymous Building in workspace /var/lib/jenkins/jobs/hello/workspace Checkout:workspace / /var/lib/jenkins/jobs/hello/workspace - hudson.remoting.LocalChannel@c7aaef Using strategy: Default Checkout:workspace / /var/lib/jenkins/jobs/hello/workspace - hudson.remoting.LocalChannel@c7aaef Cloning the remote Git repository Cloning repository origin ERROR: Error cloning remote repo 'origin' : Could not clone user@the_remote_host:hello.git hudson.plugins.git.GitException: Could not clone user@the_remote_host:hello.git
git clone user@the_remote_host:hello.git
(另外, 也可以設定 ssh 自動接受憑證)
Caused by: hudson.plugins.git.GitException: Error performing command: git tag -a -f -m Jenkins Build #4 jenkins-hello-4 Command "git tag -a -f -m Jenkins Build #4 jenkins-hello-4" returned status code 128: *** Your name cannot be determined from your system services (gecos). Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository.
$ git config --global user.email "jenkins@localhost"
$ git config --global user.name "jenkins"
沒有留言:
張貼留言