core/src/main/java/hudson/tasks/CommandInterpreter.java defines a join(Proc p) method that's supposed to be able to set the result to Result.UNSTABLE.
However, it has no access to the build object to call setResult(...)
It's an extension point, so while it's not used in-tree it isn't clear if there might be out-of-tree code using it. As such just replacing it with a version that takes more parameters may not be wise.
I think it's necessary to add a member variable to track the build and a protected accessor; that way the same call interface can be retained. Patch pending.
- is blocking
-
JENKINS-23786 Permit "Execute shell" jobs to return 2 for "unstable"
-
- Resolved
-
[JENKINS-23896] PATCH: CommandInterpreter.join(...) doesn't have access to the Build object
Link |
New:
This issue is related to |
Labels | New: build core patch unstable | |
Summary | Original: CommandInterpreter.join(...) doesn't have access to the Build object | New: PATCH: CommandInterpreter.join(...) doesn't have access to the Build object |
Labels | Original: build core patch unstable | New: build core patch pull_request unstable |
Link |
Original:
This issue is related to |
Link |
New:
This issue is blocking |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Workflow | Original: JNJira [ 156761 ] | New: JNJira + In-Review [ 179381 ] |
Created https://github.com/jenkinsci/jenkins/pull/1324