-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins ver. 2.138.1
GitHub Branch Source Plugin 2.3.6
Kubernetes Plugin 1.12.6
The `checkout scm`step fails in a slave container created with the Kubernetes Plugin while having "Checkout over SSH" enabled in the Github
Branch Source Plugins configurations.
The error I'm getting is smthing like this: "stderr: No user exists for uid 1000450000" so apparently its not using the correct ssh-user to authenticate with github.
During the checkout the logs correctly state "... using GIT_SSH to set credentials correct-credentials@example.com for jobs ...." but apparently it is not actually used. The checkout works for the same pipeline if the `Checkout over SSH` is not enabled.
def label = "mypod-${UUID.randomUUID().toString()}" podTemplate(label: label, containers: [ containerTemplate( name: "example", image: "someImage", ttyEnabled: true, command: "cat", resourceLimitCpu: '500m', resourceLimitMemory: '1024Mi', ), ]) { node(label) { echo "Checking out scm" checkout scm echo "scm checkout done" stage('Stage X') { sh "ls -la" container('example') { stage('Stage Y') { sh "ls -la" } } } } }
- relates to
-
JENKINS-56076 Git Client plugin's CLI implementation does not interoperate with Kubernetes plugin
- Closed