System Wide Environment Variables in Bamboo
January 29, 2015We use Atlassian Bamboo as our build system of choice due to the convenient integration with the rest of our tools. Bamboo works great but has a few quirks. One that we recently ran in to while setting up some unit tests was that the tests were working locally but failing on the build server (a Mac Mini). The failing test was one relating to the ability to properly handle UTF characters in a push notification and was failing with
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-13: ordinal not in range(128)
Playing around, we were able to find that there was an environment variable being set during interactive login (LANG) that was not being set by the build server’s test runner. A simple method to work around this would be to add it to the configuration for that specific job but since we normally work in UTF, we tried looking for a better way to make the build server look like a normal system.
To add the environment variable system wide, we ended up having to add to the $BAMBOO_HOME/bamboo-agent.sh startup file. This start file sets up the environment that the build slave runs in so we can use it to help standardize our environments across multiple operating systems and user configurations and now we’re back to making sure that users can use all their UTF-enabled Emoji to keep
Looking for more like this?
Sign up for our monthly newsletter to receive helpful articles, case studies, and stories from our team.
![Lessons Learned from our Associate Developer](https://gratis-creeper.transforms.svdcdn.com/staging/blog/lessons-learned.jpg?w=696&h=320&q=75&auto=format&fit=crop&dm=1708017577&s=bacaa894a5d91eb8fc3390a2ec8b0406)
Lessons Learned from our Associate Developer
September 13, 2023One of our Associate Software Developers, Rohit, reflects on his time at MichiganLabs working on a short-term project, what he learned about real-world development, and the software consultancy business model.
Read more![Why Use Flutter?](https://gratis-creeper.transforms.svdcdn.com/staging/blog/1544607_blog-post-social-image_011723.png?w=696&h=320&q=75&auto=format&fit=crop&dm=1708017377&s=5bfd33f9da9e880381ff782f72d11661)
Why Use Flutter?
January 18, 2023We discuss Flutter, a framework for building Android and iOS apps with a single codebase, created by Google in 2018. Given the increasing popularity of smartphones and mobile-first experiences, it is essential to cover not only Android and iOS platforms but also the mobile-first web.
Read more![What the smartest executive leaders are doing right now](https://gratis-creeper.transforms.svdcdn.com/staging/blog/Smartest-execs_1080x1080_040424.jpg?w=2250&h=2250&auto=compress%2Cformat&fit=crop&dm=1721919838&s=b986884e81efdeed51ef17bec2bbd746)
What the smartest executive leaders are doing right now
July 25, 2024We are consistently seeing three things right now in terms of how executives are tackling the technological challenges they are facing.
Read more