We are getting the message, "A variable value contains an illegal string or character" from Bitbucket Pipeline.
The Environment Variable Document, unless I missed it, doesn't mention any limits on values. It doesn't say anything about escaping characters in the values.
What characters are not valid? Are there any escaping mechanisms?
Hey @Davina Adisusila I'm having exactly the same issue. I do not see any illegal characters on my env vars.
Opening the validator shows this:
I even tried to use the env vars without the double quotes to no avail, still getting this:
I do have, of course, the referenced variables defined in my environment variables page set.
Is this a known issue... something we are doing wrong perhaps?
I love to have the pipelines integrated with the source control but unfortunately storing the credentials on the YAML is not an option as you'd guess.
Thanks in advance!
Just to add to the conversation: using the ENV VARS within the pipelines section works; I added the following as the last command of the pipeline for instance:
echo "Database name is $DB_NAME"
And it does output in the log the database name, so it seems that only when using env vars in the definitions section they are not properly parsed:
SERIOUSLY - Wasted a few hours on this ridiculousness..why would Atlassian do something awesome like create environmental variables and then NOT allow us to implement them in the entire YAML file?! And the ENTIRE documentation for bitbucket pipelines doesnt promote the use of the environmental variables...I'm about to switch to Gitlab where we don't have half-baked implementations and documentation ..
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs