Open tomdottom opened 7 years ago
Same here, some fix? My config:
@tomdottom The docker image must have inside the jenkins agent ready for run. In my case, a workaround is use a custom Dockerfile with base of https://hub.docker.com/r/jenkinsci/slave/~/dockerfile/ and adding the things I need (docker for example). Once you have a jenkins agent running inside the container, the sh will exec correctly.
@AndresCidoncha thanks for the suggested solution.
@tomdottom do you have '/bin/bash' as Shell executable command on Jenkins->Configure System page? In this case '/bin/sh' should fix it.
I had the same problem, and it was caused because the format of the bash script was incorrect. I noticed it when I tried to run my script on my local computer and I saw the error message:
/bin/sh^M: bad interpreter: No such file or directory.
After to fix this issue my script was executed successfully.
When trying to run the following declarative pipeline:
I get the error:
When monitoring the pipelines
@tmp
directory whilst its running I can seescript.sh
created.some system details
Jenkins running as a single node system which has docker installed.