my jenkins pipeline script is extremely simple (so far), see below
node{
stage('Scm Checkout'){
git credentialsId: 'git-creds', url: 'https://xx@xx/xx.git'
}
}
Error im getting is SSL certificate problem: unable to get local issuer certificate
- im pulling from a bitbucket repo.
Interestingly its failing at the following line:
git.exe fetch --tags --force --progress -- https://xx@xx/xx.git +refs/heads/*:refs/remotes/origin/* # timeout=10
however I can run this fine from git bash if I just run the following command first:
git config --global http.sslVerify false
I saw a post elsewhere where someone was suffering from same issue and his comment was: "Adding following to gitconfig file resolved the issue"
{{[http] }}
sslVerify = false
This may be the solution, but Im not sure what exact steps I need to follow to achieve this