[Jenkins-infra] can't run python at jenkins slave using kubernetes plugin

Robin Chen robin.chen at percolata.com
Wed Mar 20 04:41:45 UTC 2019


Hi guys,

These days I meet an issue of Jenkins.

I plan to use kubernetes plugin to run my jobs. Because I need to run
python, I build a new image based on jnlp-slave then install python and
related packages. After running on slave I found that the slave node can
hardly recognize any python command. I also use

Building remotely on jenkins-slave-zcrgk (jenkins-slave) in workspace
/home/jenkins/workspace/test
[test] $ /bin/sh -xe /tmp/jenkins7218841966279036340.sh

   - cd /usr/bin
   - ls -la

to list all the command, python is not in there. But If I run this slave
image at my local machine
docker run -it --rm --entrypoint /bin/bash --user root
robinchen007/jenkins-slave:1.5
python interpreter works well.
Can you help to figure out the reason?


Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jenkins-ci.org/pipermail/jenkins-infra/attachments/20190320/6a84c009/attachment.html>


More information about the Jenkins-infra mailing list