Jenkins configuration:
[cid:CCBFDFBD-D0D7-4CBE-8F58-F56D6792A92C]

I ran ‘git - - version’ on my job and it looks like it is using the ‘default’ 
git installed on the slave node instead of the git plugin [v2.2.7].
Is that correct?

Job output

$ /bin/sh -xe /tmp/hudson1026664733309319541.sh
+ git --version
git version 1.7.1

Slave Node
Slave6$ git --version
git version 1.7.1

From: Mark Waite <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Monday, February 8, 2016 at 3:01 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: git plugin, git client plugin and git

If you enabled JGit from the Jenkins global configuration, then there will be a 
pick list in each project configuration page which allows you to select either 
the default "Git executable" or JGit as the "Git executable".

I've attached two pictures that show the difference in my project configuration 
page.

Here's the default:

[Default-Git-executable.JPG]

Here's the JGit case:

[JGit-Git-executable.JPG]

Mark Waite

On Mon, Feb 8, 2016 at 1:38 PM Ashish Yadav 
<[email protected]<mailto:[email protected]>> wrote:
Thanks for the clarification. How/where do I see the option for the git client 
plugin to see if it is using the command line git or jgit?

From: Mark Waite <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Monday, February 8, 2016 at 1:11 PM
To: Jenkins Users 
<[email protected]<mailto:[email protected]>>
Subject: Re: git plugin, git client plugin and git

The git plugin presents a user interface and implements most of the Jenkins git 
use cases, including things like choosing which branches to monitor, polling 
for changes, publishing changes and tags, ignoring commits based on message 
content or submitter, remembering reference repositories, remembering timeout 
values, etc.

The git client plugin provides a git SCM abstraction and allows the user to 
select one of two implementations, either command line git, or the pure Java 
JGit implementation.  It is called by the git plugin (and by other plugins 
which need git functionality).  The git client plugin was created as a result 
of the refactoring which created git plugin 2.x.  The git plugin 1.x code was 
hard to maintain, so Kohsuke Kawaguchi, Nicolas de Loof, and others created the 
git plugin 2.x implementation, with the git client plugin extracted as a git 
SCM API.

If the command line git implementation is chosen, then the command line git 
installed on the slave which executes the job is used to perform the git 
operations.  If the JGit implementation is chosen, then git operations are 
performed within the Jenkins process.

The command line git implementation is the "reference implementation".  It has 
the most features, and seems to be the most frequently used.  There are a 
number of limitations in the JGit implementation which don't exist in the 
command line git implementation.  Those use cases which it implements are 
generally as capable as the command line git implementation.  There is a little 
more information on command line git vs. JGit at 
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-WhyNotJGit .

Mark Waite

On Mon, Feb 8, 2016 at 11:58 AM Ashish Yadav 
<[email protected]<mailto:[email protected]>> wrote:
I am running Jenkins LTS v1.609.3 on CentOS.

I have the following plugins installed.
git plugin v2.2.7
git client v1.11.0


However, I also have git installed on master and the slaves.

Master - - git version 1.7.12.4
Slave #1- git version 1.8.2.1
Slave #2 - git version 1.7.12.4
Slave #3 - git version 1.8.3.1
Slave #4 - git version 1.8.3.1
Slave #5 - git version 1.8.3.1
Slave #6  - git version 1.7.1
Slave# 7 - git version 1.8.3.1
Slave #8  - git version 1.8.2.1


When a job executes on the master or the slave, which ‘git’ is it using? Is it 
the version installed on the server or the git client plugin?
Also, why do I need both the git and git client plugin? Why not just the git 
client plugin?


--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D2DE416D.1595E%25ashish.yadav%40firemon.com<https://groups.google.com/d/msgid/jenkinsci-users/D2DE416D.1595E%25ashish.yadav%40firemon.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEAWtW1T%3D6%3DgQfXFCxwfVMGWsF%2BA_QRbqgaZ%2BNXBXSiqg%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEAWtW1T%3D6%3DgQfXFCxwfVMGWsF%2BA_QRbqgaZ%2BNXBXSiqg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D2DE5894.15965%25ashish.yadav%40firemon.com<https://groups.google.com/d/msgid/jenkinsci-users/D2DE5894.15965%25ashish.yadav%40firemon.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH-N2hN2xpVeHiquupJkXgac4KGXc53gWgK66jV%3Do1WcA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH-N2hN2xpVeHiquupJkXgac4KGXc53gWgK66jV%3Do1WcA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D2DE6005.1596E%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to