Skip to content

Commit

Permalink
Fix merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Jun 19, 2017
1 parent 0451b4c commit 710f0f7
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -278,22 +278,22 @@ public void record(@NonNull SCMHead branch, SCMRevision revision, boolean isMatc
@CheckForNull
protected SCMRevision retrieve(@NonNull String thingName, @NonNull TaskListener listener)
throws IOException, InterruptedException {
try (MercurialSCMSourceRequest request = new MercurialSCMSourceContext<>(criteria, observer)
try (MercurialSCMSourceRequest request = new MercurialSCMSourceContext<>(null, SCMHeadObserver.none())
.withTraits(traits)
.newRequest(this, listener)) {
MercurialInstallation inst = MercurialSCM.findInstallation(request.installation());
if (inst == null) {
listener.error("No configured Mercurial installation");
return;
return null;
}
if (!inst.isUseCaches()) {
listener.error("Mercurial installation " + request.installation() + " does not support caches");
return;
return null;
}
final Node node = Jenkins.getInstance();
if (node == null) { // Should not happen BTW
listener.error("Cannot retrieve the Jenkins master node");
return;
return null;
}
Launcher launcher = node.createLauncher(listener);
StandardUsernameCredentials credentials = getCredentials(request.credentialsId());
Expand Down

0 comments on commit 710f0f7

Please sign in to comment.