diff --git a/core/src/main/java/hudson/model/LargeText.java b/core/src/main/java/hudson/model/LargeText.java index 835f4f93ff135f651ac0f8a3c12c2524f18d4505..ff238ed94751fe2a42d4c67be80b93427175aa3c 100644 --- a/core/src/main/java/hudson/model/LargeText.java +++ b/core/src/main/java/hudson/model/LargeText.java @@ -34,7 +34,7 @@ public class LargeText { } private final Source source; - private final boolean completed; + private volatile boolean completed; public LargeText(final File file, boolean completed) { this.source = new Source() { @@ -70,6 +70,10 @@ public class LargeText { this.completed = completed; } + public void markAsComplete() { + completed = true; + } + /** * Writes the tail portion of the file to the {@link Writer}. * diff --git a/core/src/main/java/hudson/scm/CVSSCM.java b/core/src/main/java/hudson/scm/CVSSCM.java index d1f0cb80a5990dccd26a71f487ffcdd429839e73..dd338012a76926527a519e3e920ba7f1e7b59433 100644 --- a/core/src/main/java/hudson/scm/CVSSCM.java +++ b/core/src/main/java/hudson/scm/CVSSCM.java @@ -1147,6 +1147,7 @@ public class CVSSCM extends AbstractCVSFamilySCM implements Serializable { } listener.getLogger().println("Completed"); + text.markAsComplete(); } }