On Jenkins with Katalon plugin it works only if you realy put someting like -g_userName="admin" BUT IT’S NOT OVERRIDING the Execution Profile variable if you try to get its value from a Jenkins’s secret text like this
Thank you, @chen.lee ! Being able to get values from secret text in Jenkins is an extremely important feature. It shouldn’t be dificult to fix for -g_<variable_name> since it works for -apikey=%apikey%,
@gdearest07, I received their reply. Their response is to change the global variable by the desired scenario tags during runtime, use the following command syntax -g_XXX, for example, -g_userName="admin".
@chen.lee , if that is Katalon developers responce, tnen they do not undestand what IS THE PROBLEM.
As I wrote above:
On Jenkins with Katalon plugin it works only if you realy put someting like -g_userName="admin"BUT IT’S NOT OVERRIDING the Execution Profile variable if you try to get its value from a Jenkins’s secret text like this
Hi @gdearest07, I closed the topic due to the duplication. Thanks for bringing it back up to our attention. I will definitely talk to product team and let them know your feedback. Best.
Currently, the ability to pass secret text of Jenkins via -g_<variable_name> and get it masked or encrypted is not yet supported. We acknowledge the security need from you and will plan to improve it in upcoming releases.
@huyen.nguyen2 , there is no specific Jenkins error. Just create a simple Katalon project with a test that checks the value of some global variable (e.g. the variable secret is expected to have the value “123” ) and try to get that value from Jenkins.
In case of using something like -g_secret=“123”, the value of secret in your test will be “123” (as expected) - RIGHT SECRET
In case of using -g_secret=%secret% (where secret is a Jankins secret set up in Jenkins with value “123”) you will not be able to get ‘123’ in your test - WRONG SECRET