Jenkins更新语法错误:文件结束意外(期待")")执行Shell

wal*_*ake 5 bash shell jenkins

我试图在我的Jenkins服务器上运行构建时遇到错误.以下是输出显示的内容.这是在我更新到Jenkins的最新版本之后发生的.我还验证了所有插件都是最新的.

[EnvInject] - Loading node environment variables.
[workspace] $ /bin/sh -xe /tmp/hudson229576663898687231.sh
/tmp/hudson229576663898687231.sh: 1: /tmp/hudson229576663898687231.sh: Syntax error: end of file unexpected (expecting ")")
Build step 'Execute shell' marked build as failure
Finished: FAILURE

进一步调试似乎无论何时我添加一个执行shell构建选项,都会抛出错误.例如,在execute shell块中.

ls -al;

Jenkins安装也在Ubuntu 12.10机器上.

wal*_*ake 8

经过进一步调试后,我发现了正在发生的事情.詹金斯用来默认

#!/bin/sh

但似乎没有默认为那个.我在命令脚本之上添加了它,它现在运行正常.