Jenkins使用Execute shell脚本失败

时间:2017-01-15 21:04:12

标签: bash shell jenkins

我在${JENKINS_HOME}/scripts/convertSubt.sh

中有我的bash脚本

我的工作有构建步骤执行shell enter image description here

然而,在我运行工作后,它失败了: enter image description here

2 个答案:

答案 0 :(得分:2)

错误消息(即 0:部分)表明执行脚本时出错。

您可以使用

运行脚本
sh -x convertSubt.sh

为了安全起见,你也可以做一个

ls -l convertSubt.sh
file convertSubt.sh

在你运行之前。

答案 1 :(得分:0)

  1. 确保脚本与 ls
  2. 一起存在
  3. 无需sh,只需./convertSubs.sh(确保您拥有运行权限)
相关问题