Releasing macOS app on GCP — Part 5

Margaryta Chepiga
Tumiya
Published in
2 min readDec 30, 2019

This is the last part of the series, you can find the rest below:

This is the last part of the series, and it is regarding the issue that happened to me on Bitrise.

Problem Statement:

Step fails on bitrise, due to a non working Python executable.

The weird thing with this issue is that, it doesn’t fail every time you run a pipeline. It’s random.

First time I run the pipeline, it succeeded. But then, I had to test some changes and trigger the pipeline several times in a short period of time. And that’s when I notices that it was passing once, and failing the next time 😟

Solution

No matter what I tried nothing worked.

I set up the CLOUDSDK environmental variable, I digged into Bitrise VM’s, googled my way through. It seemed like no matter what I do it won’t work. I almost gave up. Until, Asad Mansoor, who saw my pain & struggle, suggested me to use one simple command. So just in case you run into same issue, here is a solution for you:

brew reinstall python@2

We run the pipeline over 5 times to make sure it works every time. And it did.

Why exactly did it happen?

I assume, that the python was not installed properly on any other machine. Since, simple reinstallation fixed it.

Also keep in mind, you need to add the above line in the Script #1 before the commands that you already have there. So if you were following my series, your script will look like this now:

brew reinstall python@2git clone ssh://your-url/gcloud-SDK.git
bash ./gcloud-SDK/config-gcloud.sh
#To be able to use the gcloud in other steps
envman add --key PATH --value $PATH:${PWD}/gcloud-SDK/google-cloud-sdk/bin

Hope it helps, and saves you bunch of time!

--

--

Margaryta Chepiga
Tumiya
Writer for

Software Developer, known as overexcited girl who is passionate about technology