| Code changed in jenkins User: Craig Ringer Path: core/src/main/java/hudson/tasks/Shell.java core/src/main/resources/hudson/tasks/Shell/config.groovy test/src/test/java/hudson/tasks/ShellTest.java http://jenkins-ci.org/commit/jenkins/e773eb44621ded75e66e4d4b3aa6f7a48bebcb49 Log: JENKINS-23786: Allow Shell jobs to set a return code for unstable Currently a shell job has to make a HTTP call back to Jenkins to set its build result as unstable. This is slow, requires the slave to have access to the master's HTTP interface, and is fiddly. The alternative, the TextFinder plugin, is no better. Instead, allow a job to set the build result to unstable with a return value. Adds the Advanced parameter "unstableReturn" which, if non-zero, is the code the script must return to set the build as unstable. |