How to mark Jenkins builds as SUCCESS only on specific error exit values (other than 0)?

后端 未结 6 1457
遥遥无期
遥遥无期 2021-02-14 03:37

When I run an Execute shell build step to execute a script and that script returns 0, Jenkins flags the build as SUCCESS, oth

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-14 04:07

    Create a wrapper for your shell script. Have that wrapper execute your tests and then set the resturn value according to whatever criteria you want.

提交回复
热议问题