I'm running kubernetes plugin 1.9.2 with Jenkins 2.107.3
I specify a container template like this:
This container has no /bin/sh installed at all. It uses busybox and cannot have the /bin/sh symlink due to limitations of Kaniko
When running a `sh` command in the pipeline, I get:
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"/bin/sh\\\": stat /bin/sh: no such file or directory\"\n"
Anyone know where you can modify the exec command that the plugin uses to run shell commands? The docs at
https://github.com/jenkinsci/kubernetes-plugin#specifying-a-different-shell-command-other-than-binsh seem to say this is possible. FYI, the shell property of containerTemplate is not mentioned in the overview of containerTemplate in the docs.
Thank you,
David