Jenkins Pipeline: scm username / password as input parameters
I need to pass a username / password to use to release maven in a pipeline.
I cannot register credentials with Jenkins as each user has to use their own credentials, so I need to pass them as parameters (just like the credentials can be passed when doing a release with a maven job).
I tried to define them as job parameters in Jenkins, but then I cannot avoid registering them when passing them on the command line:
sh "mvn -e -Dpassword=${SCMPW} -Dusername=${SCMUSR} ... release:prepare release:perfom"
Is there a way to get this?
+3
source to share
No one has answered this question yet
Check out similar questions: