I have Jenkins build server running on Ubuntu and configured a windows machine as slave. To compile .net code, I have created jenkins jobs to run specifically on this windows slave. On the windows machine (jenkins slave), I have installed GIT. Upon successfully creation of SSH public key and uploaded in AWS, I am able to clone the repository from the command line. But if I clone the same repo from the Jenkins job, I get the following error.
stderr: fatal: protocol error: bad line length character: logi
Here are my questions:
I tried to find answers from various sources but could not find any lead. Any thoughts on this?
The jenkins job might be running as a different user to that which you were logged in as. Make sure you have the appropriate keys in the SSH config of that user.
I haven't used Jenkins myself, but I've used Go CD ( https://www.go.cd/ ) and have run into this before, creating the key as the root
user, but pipelines/jobs actually run as the go
user.
On the EC2 instance, I have created a 'jenkins' user and ran the JNLP agent. Jenkins says as connected. I have executed a windows command successfully. But when I use try to use 'GIT' plugin to pull the code from repository, I get the error mentioned in my original post.
I have the same setup in my other laptop setup in office and I am able to pull code from 'GIT' without any problems. The main problem with this is that I cannot work from home as the laptop goes to sleep/shutdown by itself. This setup is not ideal in most of the situations.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.