I'm trying to configure my Jenkins job to connect to Altassian Stash. I'm using the git plugin for Jenkins.
Here the job configuration details- under source code management, choose git:
Repository Url: https://lab.xyz.com/stash/scm/projects/sandbox.git
Credentials: jenkinuser/password (defined in the global credentials of Jenkins configuration)
I get the following error:
Failed to connect to repository:
Could not init C:\Windows\TEMP\hudson1141847846411984817tmp
(The tmp name keeps changing).
Appreciate any help. Thanks.
I know its a little late but this worked for me:
Check if you have install git on the Jenkins server, and check if you have set the git executable path in the Jenkins configuration
More specifically go to 'Manage Jenkins' -> 'Global Tool Configuration' and check the 'Path to Git executable' field.