Hi there.

Since my previous comment the JGit project fixed the issue that was messing up with the executable bits of files during checkout.

However, I'm still seeing the wrong JGit behaviour using Jenkins's git-client-plugin version 1.16.1 which I reckon is build using JGit version 3.6.2.201501210735-r which, according to Git, contains the commit which was implemented to solve the issue:

[~/git/other/jgit] (master)$ git tag --contains d81529029a887cbc2356d6fc8d0168bd2f031ca2
v3.6.0.201412230720-r
v3.6.1.201501031845-r
v3.6.2.201501210735-r
v3.7.0.201502031740-rc1
v3.7.0.201502260915-r

I confirmed that JGit v3.6.2.201501210735-r solved the problem by using its CLI interface to perform clones and checkouts.

But in my Jenkins 1.596.1 with git-client-plugin 1.16.1 I have a freestyle job configured to clone a repository using JGit. Look that after the checkout the executable files only have the owner executable bit set, not the group and other ones:

22:45:59 Started by user Gustavo Chaves
22:45:59 [EnvInject] - Loading node environment variables.
22:45:59 Building remotely on gerrit in workspace /l/disk0/cds/jenkins-slave/workspace/test-gerrit-checkout
22:45:59 Cloning the remote Git repository
22:46:00 Receiving objects
22:46:02 Resolving deltas
22:46:04 Updating references
22:46:04 Checking out Revision 8bbf53438aa4682349d354380c7d3a664e8dfb65 (origin/master)
22:46:05 [test-gerrit-checkout] $ /bin/sh -xe /tmp/hudson7932434129893537532.sh
22:46:05 + find bin -type f -perm -0100 -not -perm 0775 -ls
22:46:05 726001    4 -rwxrw-r--   1 cds      cds          1983 Apr 20 22:44 bin/email-stuff.pl
22:46:05 726017    4 -rwxrw-r--   1 cds      cds          3138 Apr 20 22:44 bin/jvm-gc-log-plot
22:46:05 726062    4 -rwxrw-r--   1 cds      cds          1006 Apr 20 22:44 bin/ga2csv.pl
22:46:05 726094    4 -rwxrw-r--   1 cds      cds          1319 Apr 20 22:44 bin/lmstat-a-summary.pl
<...>

Can someone confirm that git-client-plugin 1.16.1 uses JGit v3.6.2.201501210735-r?

Change By: Gustavo Chaves (21/Apr/15 2:01 AM)
Resolution: Not A Defect
Status: Closed Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to