Is there an SVN client we can use for Maven that supports picking up credentials from Jenkins

We use the Maven-release-plugin to perform releases and that invokes SVN to commit changes to poms, create branches etc.
Currently to make this process happen we login with SVN client from command line and cached password in the .subversion folder of the user.
Is there a way e.g. different maven plugin, different SVN client etc. for us to do this with having the credentials in Jenkins only.

  • Conditional Post-Build step in Jenkins (Ideally without plugins)
  • A script to merge the last successful build in jenkins from a development branch to a release branch using GIT
  • 'Cordova/CDVViewController.h' file not found when run in Xcode terminal
  • Package multiple publish profiles .pubxml after a successful build in Jenkins CI
  • Jenkins git clone into a subdir of workspace
  • Groovy Postbuild in Jenkins, parsing the log for strings and counting them
  • Folder structure in GitHub for my Eclipse Maven project
  • Protractor + xvfb + selenium test Hangs on Jenkins
  • Using Maven, Git: How do I tag the latest version of my code?
  • Jenkins Email-ext plugin - tokens
  • How to get PID and Port # for a Jenkins Process
  • Maven uses an incorrect Java version when it is executed by Jenkins
  • 2 Solutions collect form web for “Is there an SVN client we can use for Maven that supports picking up credentials from Jenkins”

    In Jenkins you can use the Crendentials Binding Plugin for such purposes.

    Within a pipeline you can do it via the following:

    withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'amazon',
                    usernameVariable: 'USERNAME', 
                    passwordVariable: 'PASSWORD']]) {
                    //available as an env variable, but will be masked if you try to print it out any which way
                    sh 'mvn -Dusername=${USERNAME}, -Dpassword=${PASSWORD}  release:prepare release:perform'
                }
    

    You can also add supplemental parameters during release:perform via:

    withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'amazon',
                    usernameVariable: 'USERNAME', 
                    passwordVariable: 'PASSWORD']]) {
                    sh 'mvn -Darguments="-Dusername=${USERNAME}, -Dpassword=${PASSWORD}" release:perform'
                }
    

    Solved by using Credentials Binding Plugin in the build environment tick “Use secret text(s) or file(s). Then select username and password(separated) and select the credentials.
    In the “Username Variable” just input username
    In the “Password Variable” just input password
    The plugin will automatically inject the values from the credentials and hide them in the logs.

    Thanks to anyone who took the time to read and reply to this.

    Git Baby is a git and github fan, let's start git clone.