If the possiblyCachedRepo is null, it means there was an earler error updating or cloning the cache. The polling shouldn't try to continue in that case, but throw an exception.

For instance:

if (!requiresWorkspaceForPolling()) {
    launcher = Hudson.getInstance().createLauncher(listener);
    PossiblyCachedRepo possiblyCachedRepo = cachedSource(Hudson.getInstance(), launcher, listener, true);
    if (possiblyCachedRepo == null) {
        throw new IOException("Could not use cache to poll for changes. See error messages above for more details");
    }
    FilePath repositoryCache = new FilePath(new File(possiblyCachedRepo.getRepoLocation()));
    return compare(launcher, listener, baseline, output, Hudson.getInstance(), repositoryCache);
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to