In order to run e2e-tests I need to provide some configuration (e.g. json-file) to my build plan, yet I do not want to store the config in vcs or in any other external source.
I hope you are talking about a Bamboo build running on Linux. Assuming that is the case, please consider the following JSON content as an example:
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
You could embed this content in a script task using the following configuration:
read -d '' filename << EOF
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
EOF
echo "$filename" > filename.json
The script task will create the file you need and it could be configured to run right before the e2d-tests.
Let me know what you think about this.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.