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

Provide lightweight checkout capability for Mercurial

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.104
      Mercurial 2.3
    • Similar Issues:

      Description

      JENKINS-33273 introduced a lightweight checkout capability to download a Jenkinsfile from source control without checkout out the entire repository, but it appears this hasn't been implemented for Mercurial: "Lightweight checkout support not available, falling back to full checkout."

        Attachments

          Issue Links

            Activity

            Hide
            kpop kpop added a comment -

            Perhaps it's an option to use the repository browser to access the latest version of the specified Jenkinsfile?

            Show
            kpop kpop added a comment - Perhaps it's an option to use the repository browser to access the latest version of the specified Jenkinsfile?
            Hide
            kpop kpop added a comment -

            If my Mercurial source would be "http://myserver:8080/FolderName/RepoName" and the Jenkinsfile is located in "CI/Jenkinsfile", I'm able to get this Jenkinsfile through HTTP on "http://myserver:8080/FolderName/RepoName/raw-file/tip/CI/Jenkinsfile". Perhaps this is an easy solution to avoid the full checkout?

            Show
            kpop kpop added a comment - If my Mercurial source would be "http://myserver:8080/FolderName/RepoName" and the Jenkinsfile is located in "CI/Jenkinsfile", I'm able to get this Jenkinsfile through HTTP on "http://myserver:8080/FolderName/RepoName/ raw-file / tip /CI/Jenkinsfile". Perhaps this is an easy solution to avoid the full checkout?
            Hide
            kpop kpop added a comment -
            Show
            kpop kpop added a comment - This is also described in the official documentation https://www.mercurial-scm.org/wiki/TipsAndTricks#Create_links_to_snapshots_of_files_and_tarballs

              People

              • Assignee:
                Unassigned
                Reporter:
                kpop kpop
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: