The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I setup passwords for selenium tests on bamboo?

vlado123
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 30, 2021

Hi, I have selenium tests andI am using serenity. All passwords for db and website login are saved in the file serenity.conf. I want to remove passwords from this file and setup password on bamboo. How can I setup it and access from my testscript? 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2021

You can keep them at Bamboo plan variables and then put them to serenity.conf file with a command 

echo ${bamboo.my.password} >> serenity.conf 
0 votes
Charlie Misonne
Community Champion
June 30, 2021

You can use variables in Bamboo. Variables exist at several levels (global, build, project). See Bamboo variables.

If you include "password" in the name of the variable the value will  be encrypted in Bamboo's database.
Unfrotunately varibales do not come with permissions so be careful at what level you define the variable if you don't want any Bamboo user to use it.

TAGS
AUG Leaders

Atlassian Community Events