Just return what the artifact zip file path would be to avoid adding ~6ms lookup of artifacts for each run (#674)

This commit is contained in:
James William Dumay 2017-01-06 08:06:25 +11:00 committed by GitHub
parent 673cd48d57
commit 9bdb6e39a1
1 changed files with 1 additions and 5 deletions

View File

@ -167,11 +167,7 @@ public class AbstractRunImpl<T extends Run> extends BlueRun {
@Override
public String getArtifactsZipFile() {
if(run.getHasArtifacts()) {
return "/" + run.getUrl()+"artifact/*zip*/archive.zip";
}
return null;
return "/" + run.getUrl()+"artifact/*zip*/archive.zip";
}
protected BlueRun stop(Boolean blocking, Integer timeOutInSecs, StoppableRun stoppableRun){