Ensure all tasks have completed before we attain COMPLETED.
@@ -3097,7 +3097,7 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
});
}
- 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
@@ -3112,7 +3112,7 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
}
});
- 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();
