JBoss ON CLI return code is always zero
Issue
- If CLI script throws exception the return code is always zero
- is there a way to force the javascript to end with non-zero in case of any exception and be passed to the bash script
Environment
- Red Hat JBoss Operations Network (ON) 3.2
- ON Command Line Interface (CLI) 3.2
- Bash script that calls rhq-cli.sh
$JON_CLI_HOME/bin/rhq-cli.sh $RHQ_OPTS -f $SCRIPT_HOME/app-deploy.js $2 $3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.