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

Ability to force clone

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Unlike git, the Mercurial "checkout" command only offers a "Clean Build" option which is used to purge the working directory.

      We need an equivalent of the "Wipe workspace and force clone" functionality available to the git plugin. Specifically, I am running into problems where the local repository contains more commits than the remote which is causing problems. I need to force a re-clone; otherwise, the script will need to be able to recover from a partially-updated repository after a failed build.

        Attachments

          Activity

          Hide
          cowwoc cowwoc added a comment -

          No need. Users can simply invoke "deleteDir()" before "checkout()" and this will have the desired effect. Also, this design scales better than stuffing this functionality in the SCM plugin.

          Show
          cowwoc cowwoc added a comment - No need. Users can simply invoke "deleteDir()" before "checkout()" and this will have the desired effect. Also, this design scales better than stuffing this functionality in the SCM plugin.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cowwoc cowwoc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: