It should be possible to specify user credential not only for SCM tagging interaction but also for Maven deploy. This should also work if the settings.xml file is distributed with the config-file-provider plugin. The credential should only be used on time and not be stored nor printed anywhere and not be available for other users.

      A user triggers a release build and enters his SCM credentials:

      Options to specify the credentials is missing. May the user has the same credential for both or may not.

      Plugin 'config-file-provider' credential configuration:

          [JENKINS-27033] Use user credential for Maven deploy

          michel gasser created issue -
          michel gasser made changes -
          Labels New: plugin

          Anders Hammar added a comment -

          This would be awesome!
          For now I'm exposing the scm creds as env variables and use an extension to the http wagon that picks that up and uses it instead of the creds from settings.xml.

          Anders Hammar added a comment - This would be awesome! For now I'm exposing the scm creds as env variables and use an extension to the http wagon that picks that up and uses it instead of the creds from settings.xml.
          Anders Hammar made changes -
          Link New: This issue depends on JENKINS-29720 [ JENKINS-29720 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161224 ] New: JNJira + In-Review [ 180616 ]
          James Nord made changes -
          Assignee Original: James Nord [ teilo ]

            Unassigned Unassigned
            mich31 michel gasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: