Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Service CLI tools not found


I want to upload the dist files of an internal python library a GCP bucket. To do so I followed these instructions to put together the step below:

image: google/cloud-sdk:latest


step: &rabbitmq-wrapper
name: RabbitMQ wrapper
image: python:3.7.3
cd common-libs/rabbitmq_wrapper/
pip install mock==4.0.2 coverage==5.1
pip install -r requirements.txt
coverage run -m unittest discover test
coverage report --omit "test/*.py"
python sdist bdist_wheel
apt-get update && apt-get install -y gettext-base
envsubst < sa-genus.dist.json > service-account.json
gcloud auth activate-service-account --key-file=service-account.json
gsutil cp dist/* gs://mybucket/


All runs ok until the gcloud call that returns "gcloud: command not found". What am I doing differently from the official documentation? I am assuming that services provide access to a set of tools that is not included in the step image, is that right?

1 answer

0 votes


Service images are running alongside your build container, like a database or service that you can connect to. However, this doesn't mean that the service container's commands can be used directly. The dependencies needed to run these commands should exist in the image used in the step.

A few suggestion I can give for your use case:

  • You can use another docker image for this step that includes both python and gcloud dependencies
  • You can create your own custom image to use in this step with all the dependencies you need
  • You can run the Python tests in one step, and upload the files in a separate step that uses google/cloud-sdk image

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

746 views 15 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you