Skip to content

Can't run python at jenkins slave using kubernetes plugin #1

@ChenJianHong2025

Description

@ChenJianHong2025

I think this would be a question other than an issue.

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions