Hi Leon,
It is a good idea, but we wanted to stay away from storing any credentials if possible.
However, a while back we did add (but did not publicly document) the custom-dev plugin
It's kind of simple it runs a function your BASH file before the test runs!
1 - you just have to implement a function
# Plugin install script. Download and extracts files.
function plugin_install()
{
# Get user info
userHome=$1
user=$2
# YOUR CODE HERE
}
2 - The BASH file should be accessible to your agent and should be just the file - for example the 'raw' contents of a file on git
You could bake into that your ENV variables and set them
export FOO=THING_TO_SET
3 - Caveats
If you are going to inject environment variables there might be some 'depends'
- What type of test are you doing? JMeter? then this would be passed in via JVM_ARGS, which we already support
- Custom scripts? Then there might be better ways to do this.
Also we execute the test under a contained user, so you might want to inject this in the startup script.
Anyway - that is our current suggestion
if you can share more details about what you are trying to do that would help us further identify a solution.
Regards
Rich