[JIRA] (JENKINS-54053) Git plugin uses git.exe as default on Windows server, even for Linux agents

3 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 12, 2018, 12:25:02 PM10/12/18
to jenkinsc...@googlegroups.com
Mark Waite created an issue
 
Jenkins / Bug JENKINS-54053
Git plugin uses git.exe as default on Windows server, even for Linux agents
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2018-10-12 16:24
Environment: Jenkins 2.146
Default plugins
Priority: Minor Minor
Reporter: Mark Waite

When I run Jenkins from the war file on Windows with the default plugins, it defines the git implementation as "git.exe" instead of "git".

When I add a Linux agent, it incorrectly attempts to use "git.exe" as the git executable on the Linux agent.

It should use "git" as the default git implementation on Linux agents even when connected from a Windows master.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 12, 2018, 1:14:01 PM10/12/18
to jenkinsc...@googlegroups.com

jurajsim@gmail.com (JIRA)

unread,
Mar 5, 2020, 11:50:02 AM3/5/20
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 8, 2020, 8:01:03 PM3/8/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Change By: Mark Waite
When I run Jenkins from the war file on Windows with the default plugins, it defines the git implementation as "git.exe" instead of "git".

When I add a Linux agent, it incorrectly attempts to use "git.exe" as the git executable on the Linux agent.

It should use "git" as the default git implementation on Linux agents even when connected from a Windows master.


Preferred solution is to use a Linux master rather than a Windows master because more Jenkins users run Linux masters than Windows masters.  If that solution is not viable, then an alternate solution is to define a new git implementation like "git-linux" with the path to the git executable on the Linux agents (typically /usr/bin/git).
Reply all
Reply to author
Forward
0 new messages