Installer return 3010, and pipeline failed

18 views
Skip to first unread message

Charles Choi

unread,
Nov 15, 2017, 7:44:10 PM11/15/17
to Jenkins Users
In my pipeline, after installation, there is a pending reboot.  Installer return 3010
Pipeline failed:
ERROR: script returned exit code 3010

How can I tell pipeline to ignore code 3010 and goto next stage?

Reinhold Fuereder

unread,
Nov 16, 2017, 1:36:47 AM11/16/17
to jenkins...@googlegroups.com

Hi Charles,

 

I guess you are executing the installer in the pipeline via “sh” step: thus, you will need to catch the exit/return code (instead of output) from “sh” step and script the logic based on the allowed bad exit code; for example:

 

def exitCode = script.sh(returnStatus: true, script: “...”)

if (exitCode != 0 && exitCode != 3010) {

  error(“...”)

}

// else: continue in pipeline...

 

HTH Reinhold

 

P.S.: Maybe, however, you want to double check that his special exit code is really okay/acceptable…

 

Reply all
Reply to author
Forward
0 new messages