You should use the credtentials,
withCredentials() {
}
Add the credentials to you Jenkins config then use the command above, it will
also prevent the print output of the password into the log and change it for
*****.
https://www.jenkins.io/doc/pipeline/steps/credentials-binding/
https://www.jenkins.io/doc/book/using/using-credentials/
[cid:[email protected]]
une compagnie [cid:[email protected]]
RAPPROCHEZ LA DISTANCE
Jérôme Godbout
Développeur Logiciel Sénior /
Senior Software Developer
p: +1 (418) 800-1073 ext.:109
amotus.ca<http://www.amotus-solutions.com/>
statum-iot.com<http://statum-iot.com/>
[cid:[email protected]]<https://www.facebook.com/LesSolutionsAmotus/>
[cid:[email protected]]
<https://www.linkedin.com/company/amotus-solutions/>
[cid:[email protected]] <https://twitter.com/AmotusSolutions>
[cid:[email protected]]
<https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig>
COVID-19 : we are glad to inform you that
Amotus<https://www.amotus-solutions.com/> are up and running with limited
impact on our performance. We will keep you informed of any changes as they
occur.
COVID-19 : nous sommes fiers d’informer nos collaborateurs que
Amotus<COVID-19%20mesures%20:%20nous%20sommes%20fier%20d’informer%20nos%20collaborateurs%20que%20Dimonoff/Amotus%20opère%20et%20que%20l’impact%20des%20nouvelles%20facçon%20de%20faire%20mise%20en%20place%20tend%20à%20minister%20l’impact%20sur%20notre%20productivité.>
opèrent adéquatement et que l’impact sur notre productivité est minimisé. Nous
vous tiendrons au courant de tout changement.
From: [email protected] <[email protected]> On
Behalf Of Gajanan Mahajan
Sent: June 21, 2020 11:18 PM
To: Jenkins Users <[email protected]>
Subject: 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 <url> --non-interactive --no-auth-cache --trust-server-cert
--username <username>--password <password>
`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.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f212facd-7252-4722-97ec-e773761a9bf7o%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/f212facd-7252-4722-97ec-e773761a9bf7o%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/YQBPR0101MB1074EA33D79EAA188D589B0CCD970%40YQBPR0101MB1074.CANPRD01.PROD.OUTLOOK.COM.