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

Provide lightweight checkout capability for Mercurial

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • mercurial-plugin
    • None
    • Jenkins 2.104
      Mercurial 2.3

      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."

          [JENKINS-50490] Provide lightweight checkout capability for Mercurial

          kpop added a comment -

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

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

          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?

          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?

          kpop added a comment -

          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

            Unassigned Unassigned
            kpop kpop
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: