Kubernetes plugin in Jenkins fail when defining which container to run on

Viewed 9

I am using Jenkins 2.277 and Kubernetes Plugin 1.30.11

I cannot upgrade the Kubernetes plugin for the current version of Jenkins I have. When I run a build on a kubernetes agent, the build works fine if I don't define which container I'm running the build on (and so run on jnlp by default) But if I do:

container('jnlp'){
    //some steps
}

It throws this error:

 You should increase the value of system property org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator.websocketConnectionTimeout currently set at 30 seconds

It's not a problem when I'm just using the default jnlp but it becomes an issue when I try to run on other container such as docker. Any suggestion other than upgrading Jenkins and the Kubernetes plugin?

0 Answers
Related