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

Using credentials-plugin to authenticate against SCMs & getting rid of maven-scm-api

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As discussed in JENKINS-18124 by ndeloof & stephenconnolly, we might improve scm authentication by using credentials-plugin instead of maven-scm-provider's APIs.

      If done, we could wonder if it wouldn't be interesting to get rid of maven-scm-api abstraction and, instead, use some NIH to bring our own abstraction layer for scm manipulations dealt by the plugin.
      I'm not really satisfied with maven-scm-api for 2 reasons :

      • Some generic abstractions differ in their implementation (for instance, update() will not act the same with DVCS and VCS scms : svn will update current working copy whereas git will not always do a fetch)
      • Some implementations are not generic because not generalized yet amongst every SCMs (for instance, the log() command, accessible in SVN, is not generically available)

      ATM, we're only relying on a subset of available generic methods (see SCMManipulator class which represents the SCM access layer)

        Attachments

          Issue Links

            Activity

            Hide
            nickcmaynard Nick Maynard added a comment -

            We work on a hosted Jenkins system in which we have no access to the underlying filesystem or config. We cannot update OS-level Git credentials - and so the SCM sync plugin simply doesn't work. Bringing it in line with the usual Jenkins SCM configuration would allow us to specify keys, etc. in Jenkins config... and everything would Work.

            Show
            nickcmaynard Nick Maynard added a comment - We work on a hosted Jenkins system in which we have no access to the underlying filesystem or config. We cannot update OS-level Git credentials - and so the SCM sync plugin simply doesn't work. Bringing it in line with the usual Jenkins SCM configuration would allow us to specify keys, etc. in Jenkins config... and everything would Work.
            Hide
            alec_m Alec Matschiner added a comment -

            I'm having the same issue that Nick Maynard is having.  I'm unable to access the underlying file system of Jenkins so this makes it impossible to provide the correct SSH keys and OS-level credentials.  So implementing the credentials plugin would be greatly appreciated!

            Show
            alec_m Alec Matschiner added a comment - I'm having the same issue that Nick Maynard is having.  I'm unable to access the underlying file system of Jenkins so this makes it impossible to provide the correct SSH keys and OS-level credentials.  So implementing the credentials plugin would be greatly appreciated!

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fcamblor Frédéric Camblor
              Votes:
              23 Vote for this issue
              Watchers:
              24 Start watching this issue

                Dates

                Created:
                Updated: