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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • mercurial-plugin
    • None
    • Pipeline: Shared Groovy Libraries 2.8 / Jenkins 2.60.3

    Description

      Issue similar as was in 

      Attachments

        Issue Links

          Activity

            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.

            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.
            1. Add new shared library with ' Load implicitly' enabled.
            2. Set 'Retrieval method' to 'Modern SCM'
            3. Source Code Management - Mercurial

            Added also screenshots

            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

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

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

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

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

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

            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

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

              Dates

                Created:
                Updated:
                Resolved: