Issue Type: New Feature New Feature
Affects Versions: current
Assignee: Unassigned
Components: core
Created: 15/Jul/14 3:24 AM
Description:

Currently, users of "Execute shell" builds must fetch the jenkins-cli jar and execute it in order to mark a build as unstable. For example:

set -e
wget ${JENKINS_URL}jnlpJars/jenkins-cli.jar
make
if ! make check; then 
  java -jar jenkins-cli.jar set-build-result unstable && exit 0
  exit 1
fi

will flag as unstable and exit.

That works, but it's a right pain. The alternative is text-finder plugin string matching, which is arguably worse.

What'd be ideal is to let the return code 2 mean "unstable" to Jenkins. So one could just replace the above with:

set -e
make
make check || exit 2

I'll see what's involved in adding this, but wanted to put the idea out.

Environment: Jenkins 1.572
Project: Jenkins
Labels: shell unstable
Priority: Minor Minor
Reporter: Craig Ringer
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to