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

Add an option to add additional remotes to the git repository in SCM

XMLWordPrintable

      Sometimes the same repository might have different remotes (for example on different hosting providers) and you might want to work with the branches from different remotes. Other parts of the plugin allow you to specify the remote, but at the moment it can't really be anything other than origin (in the common case), so it seems weird.

      I propose to add an option to add additional remotes to the repo after it's been cloned.
      It could be something as simple as "name: ..., url: ..., (credentials: ...)?".

      One common task that needs this and might be simplified if this is introduced is some automatic mirroring/repo syncing, i.e. when you want to update some branch in one remote with the new commits from some other branch in another remote at some regular intervals (perhaps, performing additional tests each time).

        1. pipeline-syntax-access.png
          133 kB
          Mark Waite
        2. pipeline-syntax-checkout.png
          113 kB
          Mark Waite

            markewaite Mark Waite
            danilaml Danila M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: