Hi all,
I need help with an issue related to the git step in a pipeline job, that is executed in a Docker container.
The pipeline looks like this:
This fails with
using credential my-credentials
Warning: JENKINS-30600: special launcher org.jenkinsci.plugins.docker.workflow.WithContainerStep$Decorator$1@12e7bf52; decorates RemoteLauncher[hudson.remoting.Channel@XXX] will be ignored (a typical symptom is the Git executable not being run inside a designated container)
Cloning the remote Git repository
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://gitlab.mycompany.com/myproject.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unable to access 'https://gitlab.mycompany.com/myproject/documentation.git/': Peer's Certificate issuer is not recognized.
I am pretty sure that this is not a matter of SSL certificates, because this works without SSL certificate issues:
(I had to install a SSL certificate in that Docker image "image-with-git-and-ssl-certificate-installed" to avoid certificate issues.)
Of course I'd prefer the builtin git step. Am I right that I can't due to the JENKINS-30600 issue?
What workaround do you recommend? The
is an obvious way to go, but maybe there is something better?
Thanks in advance.