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

          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.

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

              Created:
              Updated: