Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46851

Mercurial doesn't use credentials in Modern SCM for Shared Library

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • mercurial-plugin
    • None
    • Pipeline: Shared Groovy Libraries 2.8 / Jenkins 2.60.3

      Issue similar as was in 

          [JENKINS-46851] Mercurial doesn't use credentials in Modern SCM for Shared Library

          Jesse Glick added a comment -

          Please provide complete, self-contained steps to reproduce from scratch. JENKINS-45806 was fixed with a regression test demonstrating its effectiveness.

          Jesse Glick added a comment - Please provide complete, self-contained steps to reproduce from scratch.  JENKINS-45806 was fixed with a regression test demonstrating its effectiveness.

          1. Add new shared library with ' Load implicitly' enabled.
          2. Set 'Retrieval method' to 'Modern SCM'
          3. Source Code Management - Mercurial

          Added also screenshots

          Dmytro Kozlovskyi added a comment - Add new shared library with ' Load implicitly' enabled. Set 'Retrieval method' to 'Modern SCM' Source Code Management - Mercurial Added also screenshots

           I have same problem if use username/password credentials for shared libraries.

          vladislav piskunov added a comment -  I have same problem if use username/password credentials for shared libraries.

          Nickolas Fox added a comment -

          Don't know if problem has gone, checked with the latest release (and attached settings) and got the following output in jobs:

          $ /usr/bin/hg clone --noupdate https://xxxxxxxxxxxxxxx.xxx/uxpractice/ci-lib /var/jenkins_home/hgcache/4FD2C121064AB2C970CE3642ADAF72421A0D78D0-ci-lib
          abort: http authorization required for https://xxxxxxxxxxxxxxx.xxx/uxpractice/ci-lib
          ERROR: Failed to clone https://xxxxxxxxxxxxxxx.xxx/uxpractice/ci-lib
          Master cache lock released.
          ERROR: Could not use caches, not fetching branch heads
          ERROR: No version feature/RT462020-docker-compose-research found for library ci
          org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
          WorkflowScript: Loading libraries failed
          

          Worked fine to me on 1.61 version of mercurial plugin.

          Nickolas Fox added a comment - Don't know if problem has gone, checked with the latest release (and attached settings) and got the following output in jobs: $ /usr/bin/hg clone --noupdate https: //xxxxxxxxxxxxxxx.xxx/uxpractice/ci-lib / var /jenkins_home/hgcache/4FD2C121064AB2C970CE3642ADAF72421A0D78D0-ci-lib abort: http authorization required for https: //xxxxxxxxxxxxxxx.xxx/uxpractice/ci-lib ERROR: Failed to clone https: //xxxxxxxxxxxxxxx.xxx/uxpractice/ci-lib Master cache lock released. ERROR: Could not use caches, not fetching branch heads ERROR: No version feature/RT462020-docker-compose-research found for library ci org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed Worked fine to me on 1.61 version of mercurial plugin.

          Manuel Ryan added a comment -

          Same issue here, using "Legacy SCM" instead of "Modern SCM" solved my issue.

          Manuel Ryan added a comment - Same issue here, using "Legacy SCM" instead of "Modern SCM" solved my issue.

          Victor Verbitsky added a comment - - edited

          I have the same issue. And I think, that found the root of problem. See PR #119 in source repo

          Victor Verbitsky added a comment - - edited I have the same issue. And I think, that found the root of problem. See PR #119 in source repo

            jglick Jesse Glick
            argus_k Dmytro Kozlovskyi
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: