Skip to content

Commit

Permalink
Use ABORTED from Run.reload (#8986)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Mar 3, 2024
1 parent 699f221 commit e82487f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/hudson/model/Run.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ protected Run(@NonNull JobT project, @NonNull File buildDir) throws IOException
*/
public void reload() throws IOException {
this.state = State.COMPLETED;
// TODO ABORTED would perhaps make more sense than FAILURE:
this.result = Result.FAILURE; // defensive measure. value should be overwritten by unmarshal, but just in case the saved data is inconsistent
this.result = Result.ABORTED; // defensive measure. value should be overwritten by unmarshal, but just in case the saved data is inconsistent
getDataFile().unmarshal(this); // load the rest of the data

if (state == State.COMPLETED) {
Expand Down

0 comments on commit e82487f

Please sign in to comment.