On Friday, February 26, 2021 at 8:42:13 AM UTC-7 you wrote:
> Dear guys, > > I am getting an error stating that "Error cloning remote repo origin" > Caused by :hudson. git.GitException: Error performing command c:\.program > files\Git\ bin\git.exe init /opt/jenkins-slave > > I have already set the git windows path in Global tools correctly. > > Jenkins master is windows server and Slave node in Linux. > > JENKINS-54053 <https://issues.jenkins.io/browse/JENKINS-54053> describes the same problem and offers a workaround to the problem. Define a git tool in the Jenkins Global Tool Configuration and use 'git' as the tool path. That will allow Jenkins to use the operating system PATH to find the executable. > This is a pipeline job and It tries to run using windows git path instead > of Linux one. Please advise. > -- 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/199260c1-3306-49d7-9d69-8d073dce50f7n%40googlegroups.com.
