The task failed, but jenkins showed that the task was successful

I wrote a lot of scripts in the Jenkins project, and found that sometimes the script execution failed, but Jenkins thought the execution was successful.

Jenkins determines whether the build is successful by whether the exit code is 0.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326441819&siteId=291194637