How to run git fetch in Jenkins server

13 views
Skip to first unread message

phu...@temona.co.jp

unread,
Jun 29, 2016, 5:14:15 AM6/29/16
to Jenkins Users
I am newbiee in Jenkins. I access to the Jenkins server but i can't run any git command.
Have error 
" ERROR: Repository not found.
fatal: The remote end hung up unexpectedly "
when i run
"git fetch origin"
this is my git config
 
[remote "origin"]
        url = g...@github.com:*****/*****.git
        fetch = +refs/heads/*:refs/remotes/origin/*

Simon Richter

unread,
Jun 29, 2016, 6:53:57 AM6/29/16
to jenkins...@googlegroups.com
Hi,
You are using ssh for git, so you need to make sure the credentials you
need are properly configured ("Manage Jenkins" -> "Manage Credentials").

If the code is public anyway, I wouldn't bother though, and just use
https for checkout.

Simon


signature.asc
Reply all
Reply to author
Forward
0 new messages