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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Pipeline: Shared Groovy Libraries 2.8 / Jenkins 2.60.3
    • Similar Issues:

      Description

      Issue similar as was in 

        Attachments

          Issue Links

            Activity

            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            argus_k Dmytro Kozlovskyi added a comment -
            1. Add new shared library with ' Load implicitly' enabled.
            2. Set 'Retrieval method' to 'Modern SCM'
            3. Source Code Management - Mercurial

            Added also screenshots

            Show
            argus_k 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
            Hide
            xxxbobrxxx vladislav piskunov added a comment -

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

            Show
            xxxbobrxxx vladislav piskunov added a comment -  I have same problem if use username/password credentials for shared libraries.
            Hide
            nickolasfox 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.

            Show
            nickolasfox 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.
            Hide
            mryan Manuel Ryan added a comment -

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

            Show
            mryan Manuel Ryan added a comment - Same issue here, using "Legacy SCM" instead of "Modern SCM" solved my issue.
            Hide
            vektory79 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

            Show
            vektory79 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

              People

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

                Dates

                Created:
                Updated:
                Resolved: