Providing launch name from env variable or a dotenv file
baradhiren opened this issue · 1 comments
baradhiren commented
Hi,
Is there any way I can load rp config from a dotenv file or env variable so that I can load these things based on the envs they are running in. (Mostly for CI/CD)?
baradhiren commented
This is resolved now.
I have created a separate reporter config file with environment variables inside something like following:
"reportportalAgentJsMochaReporterOptions": {
"token": "${REPORTPORTAL_TOKEN}",
"endpoint": "",
"project": "",
"launch": "${BRANCH}",
"description": "API Tests"
}
And then using envsubst
to load the environment variables and replace it with my original reporter config file.
Marking it as closed.