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

          Dmytro Kozlovskyi created issue -
          Andrew Bayer made changes -
          Component/s New: mercurial-plugin [ 15502 ]
          Component/s Original: pipeline [ 21692 ]

          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.
          Dmytro Kozlovskyi made changes -
          Attachment New: shared_pipeline_conf.jpg [ 40067 ]
          Attachment New: shared_pipeline_result.jpg [ 40068 ]

          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
          Dmytro Kozlovskyi made changes -
          Priority Original: Blocker [ 1 ] New: Major [ 3 ]

           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 made changes -
          Attachment New: 2017-10-25_17-40-27.png [ 40108 ]
          Attachment New: 2017-10-25_17-40-05.png [ 40109 ]

          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.
          Nickolas Fox made changes -
          Comment [ Don't know if problem has gone, checked with the latest release (and attached settings) and got the following output in jobs:

          {code}
          $ /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
          {code}
          Worked fine to me on 1.61 version of mercurial plugin. ]

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

              Created:
              Updated:
              Resolved: