Having problem in importing the code from Github to Jenkins.

44 views
Skip to first unread message

Sathish M

unread,
Jan 11, 2017, 4:15:26 AM1/11/17
to Jenkins Users
I am new to Jenkins. I've been learning it by myself, as of now I know to create a job & build it when my source code is in my local system. Now I am trying to work the same from Jenkins. I've been trying it but I can't get that. Can you help me to work here with Github.

Ramanathan Muthaiah

unread,
Jan 11, 2017, 11:27:02 PM1/11/17
to Jenkins Users
On Wednesday, January 11, 2017 at 2:45:26 PM UTC+5:30, Sathish M wrote:
I am new to Jenkins. I've been learning it by myself, as of now I know to create a job & build it when my source code is in my local system. Now I am trying to work the same from Jenkins. I've been trying it but I can't get that. Can you help me to work here with Github.

Ram : There are plenty of resources on the Internet regd Jenkins integration with GitHub.

It will help if you can list what did you try and what did not work including tool or plugin versions.

/Ram

Sathish M

unread,
Jan 11, 2017, 11:51:27 PM1/11/17
to Jenkins Users
Yeah okay,
In Github,
         I have created an account in GitHub.
In Jenkins,
         I added the needed Github plugins into my jenkins. And I added the credentials for my GitHub account and also the api credentials. And I tested the connection in manage jenkins->configuresystem. It succeeded. And I created a new job & In general tab I checked the Github project & gave the http link to my repo. 
In SCM I gave the repo SSH link and the added the api credential. And I am getting the error  (I have attached that )

Please help me with this.

Mark Waite

unread,
Jan 12, 2017, 12:04:33 AM1/12/17
to Jenkins Users
You're using an scp / ssh connection, but seem to be hinting that you may be using a username / password credential.  If you're using an scp / ssh connection, then you need to use a private key credential.

If a username / password credential is required, then you'll need to use https to connect to the repository.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0654cd37-0cd6-4273-97dd-6cc3037d00a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sathish M

unread,
Jan 12, 2017, 12:24:10 AM1/12/17
to Jenkins Users

I am getting like this when I include SSH credential.why?

Mark Waite

unread,
Jan 12, 2017, 12:34:16 AM1/12/17
to Jenkins Users
Because you have probably not configured the git executable in Jenkins, or possibly you chose to install Git without making git available from the command line.  If you installed without making git available from the command line, then you'll need to provide the absolute path to the git executable.

Mark Waite

Reply all
Reply to author
Forward
0 new messages