I need save a file to variable for one bamboo server build plan
In build, I need echo the variable and save to a file which I want to get exact format.
How to do that?
echo "${bamboo_key}" > /key
I fixed it by myself.
cat file |base64 # in some OS, the output are multiple lines as well, just remove "\n"
then copy the string into the variable in bamboo plan
When run the build, add below line
echo ${bamboo_key}|base64 -d > /key
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.