Skip to content
Permalink
Browse files

[JENKINS-45806] Mercurial doesn't use credentials in multibranch pipe…

…line
  • Loading branch information
Doccrazy committed Aug 21, 2017
1 parent 7c41dbd commit 60d0b64c7a4734a40b669194633a03bd49a3458c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/hudson/plugins/mercurial/MercurialSCMSource.java
@@ -190,6 +190,7 @@ public void setCredentialsId(@CheckForNull String credentialsId) {
@CheckForNull SCMHeadEvent<?> event, @Nonnull final TaskListener listener)
throws IOException, InterruptedException {
try (MercurialSCMSourceRequest request= new MercurialSCMSourceContext<>(criteria, observer)
.withCredentialsId(credentialsId)
.withTraits(traits)
.newRequest(this, listener) ) {
MercurialInstallation inst = MercurialSCM.findInstallation(request.installation());

0 comments on commit 60d0b64

Please sign in to comment.
You can’t perform that action at this time.