-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Jenkins 2.32
Kubernetes Plugin 0.9
Kubernetes 1.4.3
I'm using Jenkinsfile syntax following the example at https://github.com/jenkinsci/kubernetes-plugin
podTemplate(label: 'test-example-build', containers: [ containerTemplate(name: 'protobuf', image: 'nanoservice/protobuf', command: 'sleep 3600'), containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave', args: '${computer.jnlpmac} ${computer.name}'), ]) { node('test-example-build') { stage('checkout') { checkout scm } container('protobuf') { stage('build') { sh "./gradlew assemble --continue" } } } }
I'm seeing this in the job's console output:
[Pipeline] container [Pipeline] { [Pipeline] stage [Pipeline] { (build) [Pipeline] sh [test_example_protobuf-4ZLX5YPVONGXNKQ5U6U3PXZSHY5ZOEH767OMBGDGDKUGOHXLRBOA] Running shell script Executing shell script inside container [protobuf] of pod [kubernetes-bad0aa993add416e80bdc1e66d1b30fc-536045ac8bbe] java.net.ProtocolException: Expected HTTP 101 response but was '500 Internal Server Error' at com.squareup.okhttp.ws.WebSocketCall.createWebSocket(WebSocketCall.java:123) at com.squareup.okhttp.ws.WebSocketCall.access$000(WebSocketCall.java:40) at com.squareup.okhttp.ws.WebSocketCall$1.onResponse(WebSocketCall.java:98) at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:177) at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // container
How can I debug this to find what's causing the 500?