Skip to content

Commit

Permalink
[SECURITY-667] Ensure all tasks have completed before we attain COMPL…
Browse files Browse the repository at this point in the history
…ETED.
  • Loading branch information
jglick committed Dec 13, 2017
1 parent f670681 commit ccc374a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/jenkins/model/Jenkins.java
Original file line number Diff line number Diff line change
Expand Up @@ -3097,7 +3097,7 @@ public void run(Reactor session) throws Exception {
});
}

g.requires(JOB_LOADED).add("Cleaning up obsolete items deleted from the disk", new Executable() {
g.requires(JOB_LOADED).attains(COMPLETED).add("Cleaning up obsolete items deleted from the disk", new Executable() {
public void run(Reactor reactor) throws Exception {
// anything we didn't load from disk, throw them away.
// doing this after loading from disk allows newly loaded items
Expand All @@ -3112,7 +3112,7 @@ public void run(Reactor reactor) throws Exception {
}
});

g.requires(JOB_LOADED).add("Finalizing set up",new Executable() {
g.requires(JOB_LOADED).attains(COMPLETED).add("Finalizing set up",new Executable() {
public void run(Reactor session) throws Exception {
rebuildDependencyGraph();

Expand Down

0 comments on commit ccc374a

Please sign in to comment.