Unable to get value of password parameter into another parameter In Jenkins pipeline parameter say Branches of type Active Choice Reactive Parameter, I've to auto-populate branch names hence I've following command, which I can execute in parameter's Groovy script -
svn ls &lt;url&gt; --non-interactive --no-auth-cache --trust-server-cert --username &lt;username&gt;--password &lt;password&gt;

username can be retrieved using User.current().getId()
I've Password parameter of Password Parameter type. To use value of this parameter in Groovy script of Branches, I've added Password parameter in Referenced parameters of Branches
But I cannot see its value reflected in Branches parameter. Can you please suggest how this can be handled?
Or any other way to pass Password value or authentication details so I can execute svn command.
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
    ''''