Skip to content

Commit

Permalink
[JENKINS-19377] Work around in plugin for the short term.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Aug 28, 2013
1 parent 22fcd87 commit 4e25b19
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/hudson/model/ExternalJob.java
Expand Up @@ -34,6 +34,8 @@
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
* Job that runs outside Hudson whose result is submitted to Hudson
Expand All @@ -43,6 +45,9 @@
* @author Kohsuke Kawaguchi
*/
public class ExternalJob extends ViewJob<ExternalJob,ExternalRun> implements TopLevelItem {

private static final Logger LOGGER = Logger.getLogger(ExternalJob.class.getName());

public ExternalJob(String name) {
this(Jenkins.getInstance(),name);
}
Expand All @@ -60,6 +65,12 @@ public ExternalRun create(File dir) throws IOException {
});
}

// TODO JENKINS-19377 overriding until 1.531 when this is fixed in core
@Override public void removeRun(ExternalRun run) {
if (runs != null && !runs.remove(run)) {
LOGGER.log(Level.WARNING, "{0} did not contain {1} to begin with", new Object[] {this, run});
}
}

// keep track of the previous time we started a build
private transient long lastBuildStartTime;
Expand Down

0 comments on commit 4e25b19

Please sign in to comment.