Hello,
I have a linux jenkins-master 2.60.3 that is downloading my jenkinsfile in a git project. I've used the snippet generator to make a checkout set from git as follows:
pipeline {
agent {
label 'windows_slave'
}
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Git installations Windows', submoduleCfg: [],
userRemoteConfigs: [[credentialsId: '8e695c3b-7ab1-44d7-badd-515381560000', url: 'g...@mygit.domain:mygroup/MyProject.git']]])
}
}
}
Important note: my Git installations Windows is configured and installed on E:\opt\Git\cmd\git.exe
Then I get the following output:
[Pipeline] node
Running on windows_slave in E:\Jenkins2\Slaves\workspace\MyProject
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
Cloning the remote Git repository
Cloning repository g...@git.serpro:sinac-34835/Sinac.Debitos.Comum.git
> /usr/bin/git init E:\Jenkins2\Slaves\workspace\MyProject # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init E:\Jenkins2\Slaves\workspace\MyProject
The jenkins checkout step is tring to use git in a different path than configured usr/bin/git init.
Does anyone got this problem?
Thanks,
Thiago
-
"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada exclusivamente a seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."
"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a government company established under Brazilian law (5.615/70) -- is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you're not the addressee, please send it back, elucidating the failure."