don't fail jenkins build if execute shell fails

前端 未结 14 1150
无人共我
无人共我 2020-12-04 08:08

As part of my build process, I am running a git commit as an execute shell step. However, if there are no changes in the workspace, Jenkins is failing the build. This is be

相关标签:
14条回答
  • 2020-12-04 08:49

    https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#sh-shell-script

    if you include a returnStatus: true property, then the shell return is ignored.

    0 讨论(0)
  • 2020-12-04 08:55

    You can use the Text-finder Plugin. It will allow you to check the output console for an expression of your choice then mark the build as Unstable.

    0 讨论(0)
提交回复
热议问题