-
-
Notifications
You must be signed in to change notification settings - Fork 65
Running in a jenkins slave kubernetes pod fails #35
Comments
we would need more logs to debug what is going on here eg. from what you have shown it looks like curl is never even invoked. a random guess - you might try invoking the curlimages/curl entry script. |
without any additional info (and not knowing the specifics of your jenkins & kubernetes environment) it is hard to see how we can help - I am going to close this issue but will try a few random guesses (feel free to comment and I will reopen if you think it would help). running
shows curl exists at /usr/bin/curl so should be on the $PATH Note that curl in the docker container runs under the curl_user (thats an explicit design decision) ... it is unclear in jenkins/kubernetes if a user is being specified. Maybe the centos version has a ./curlrc file amending curl behaviour eg. with that particular uri you would need to supply -L to ensure redirects are being followed eg.
|
I am seeing this too, and maybe I can explain a little more. The pod uses the |
I do see that it hangs forever locally with a |
Ran into this issue as well. Eventually I found that this is documented in the Kubernetes plugin: https://github.com/jenkinsci/kubernetes-plugin#pipeline-sh-step-hangs-when-multiple-containers-are-used Any of the following fixes worked for me:
|
I was facing the same issue from today morning, As a solution I have recreated docker image which was getting used in container with USER 1000 option. and it started working i.e. Dockerfile `FROM curlimages/curl:7.78.0 USER 1000` |
Using this image in a jenkins slave pod fails.
Here is an example jenkinsfile (using the Kuberneted plugin):
Which fails with:
Meanwhile, the following Jenkinsfile works as expected:
The text was updated successfully, but these errors were encountered: