Jenkins Kubernetes only executes "built in" jenkins/jnlp-slave:4.0.1-1?

18 views
Skip to first unread message

Jon Brohauge

unread,
May 26, 2020, 3:28:44 AM5/26/20
to Jenkins Developers
Hi all,

I'm stuck trying to work on a master/agent setup, running on kubernetes.

I've watched the demonstration video (https://www.youtube.com/watch?v=h4hKSXjCqyI) by Marky Jacksonm which helped me a ton.

My issue is that when I try to run my test-job (the attached Jenkinsfile), it only seems to execute on the built in container: jenkins/jnlp-slave:4.0.1-1. I don't see that execution is handed over to my custom agent (the attached Dockerfile).

I've attached the Jenkinsfile for the test-job, a redacted/amputated Dockerfile of my custom jenkins-agent, an example of the output of the test-job (job-output.txt), output taken from running the jenkins/jnlp-slave:4.0.1-1 image directly (jnlp-slave-4.0.1-1.info.txt), and my Kubernetes cloud configuration (Kubernetes-cloud-configuration.txt).

Due to corporate non-disclosure, I've had to remove some parts, but I've replaced the relevant parts with "[...]" meaningful placeholders.

Regards,
Jon
job-output.txt
Kubernetes-cloud-configuration.txt
Dockerfile
Jenkinsfile
jnlp-slave-4.0.1-1.info.txt
Reply all
Reply to author
Forward
0 new messages