tvklovesu
3 years agoFrequent Contributor
How to pass secret password from jenkins to TC using command line argument
Hello,
our project was configured to run in Jenkins pipeline and want to pass the password variable to TC that will be used as a credentials to login to the tested application. Everything is fine except when I review the Testcomplete test results in Jenkins, I see that the password sent from command line was exposed and able to see the password. I even set the password variable type in TC Project variables as Password. When I run locally it sends the password as secret.
From TC project variables
When run locally in TC
from Jenkins test result
In Jenkins command line arguments
/run /pv:env=prod /pv:ADFSusername=${RAVEN_USERNAME} /pv:ADFSpassword=${RAVEN_PASSWORD}
Thanks