Jenkin unnecessary execute shell execution fails, which causes Jenkins to fail to resolve

Source: Internet
Author: User

problem:There are multiple execution shells configured in Jenkins, and there are subsequent execution job tasks. But one of the execute shell executions failed, causing the subsequent shell to not execute.and this failed shell doesn't have to be executed.  Workaround:Execute Shell Click "Advanced" and enter 1 in the expanded exit code to set build unstableif the shell fails to execute, the result of Jenkins will not be failure, but unstable  If there is a job to be performed later, depending on the current build result, you can choose stable or unstable but not failed to determine whether or not to trigger. So Jenkins executes success or unstable can continue to execute the next job.  examples are as follows:There are two execute shells, the first shell is problematic, the path to the CD does not exist when exit code to set build unstable is not set in advanced, the result is as follows:only the first shell is executed, and the Jenkins execution result is finished:failure (red) after setting the exit code to set build Unstable=1, the following results are executed:The first shell execution failed in time, the second shell was executed, and Jenkins executed the result as finished:unstable 

Jenkin unnecessary execute shell execution fails, which causes Jenkins to fail to resolve

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.