I'm running kubernetes plugin 1.9.2 with Jenkins 2.107.3--I specify a container template like this:
containerTemplate(name: 'kaniko', image: 'gitlab-registry.nordstrom.com/cicd/kaniko:0.0.1', shell: '/bin/busybox sh', ttyEnabled: true),
This container has no /bin/sh installed at all. It uses busybox and cannot have the /bin/sh symlink due to limitations of KanikoWhen 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
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/23c96b2a-bca6-4064-a95d-96c77ea940f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/464a9617-aa28-409e-b3be-84dc7a62cbed%40googlegroups.com.