Unable to get value of password parameter into another parameter
Could credentials binding plugin be the answer?
The idea is to add svn user and password to Jenkins credentials store and then use it in the pipeline.
withCredentials([
    usernamePassword(
        credentialsId: 'mySvnLogin',
        usernameVariable: 'USER',
        passwordVariable: 'PASSWORD')]) {
    sh '''
      svn ls &lt;url&gt; --non-interactive --no-auth-cache --trust-server-cert --username $USER 
 --password $PASSWORD
    ''''