Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Pipeline failing all of a sudden. Python version issue.

I know nothing about how python comes into play and how to set the version. Any help appreciated.


Getting error:


ERROR: Python 2 is not compatible with the Google Cloud SDK. Please use Python version 3.5 and up. If you have a compatible Python interpreter installed, you can use it by setting the CLOUDSDK_PYTHON environment variable to point to it.
Here is my pipelne;


- step:


- maven

image: maven:3.8.1-openjdk-8

name: Build, stage, and deploy App Engine content

deployment: production


- mvn -D skipTests=true -P useJfrog --settings settings.xml install appengine:stage

- mvn dependency:tree

- ls -la

- ls -la target/appengine-staging/app.yaml

- cat target/appengine-staging/app.yaml

- pipe: atlassian/google-app-engine-deploy:1.1.1



PROJECT: 'xxxx'

DEPLOYABLES: 'target/appengine-staging/app.yaml'


PROMOTE: 'true'


3 answers

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 20, 2023

Hello @Bruce Wilcox ,

Thank you for reaching out to Atlassian Community!

Could you share which exact command is throwing the Python version error? Was it a command of your step's script or was it the pipe atlassian/google-app-engine-deploy:1.1.1 ?

If it was the pipe, could you please include the DEBUG variable in the pipe definition and share the logs here with us? 

  - pipe: atlassian/google-app-engine-deploy:1.1.1
      <rest of your pipe variables>
      DEBUG: 'true'

Thank you, @Bruce Wilcox !

Patrik S

Thanks for taking an interest in this.

The maven appengine:stage is failing all of a sudden:

mvn -D skipTests=true -P useJfrog --settings settings.xml package appengine:stage

Here is an excerpt from log:

[INFO] Staging the application to: /opt/atlassian/pipelines/agent/build/target/appengine-staging
[INFO] Detected App Engine appengine-web.xml based application.
Apr 20, 2023 7:15:25 PM download
INFO: Downloading to /root/.cache/google-cloud-tools-java/managed-cloud-sdk/downloads/google-cloud-sdk.tar.gz
Welcome to the Google Cloud CLI!
WARNING: You appear to be running this script as root. This may cause
the installation to be inaccessible to users other than the root user.
ERROR: Python 2 is not compatible with the Google Cloud SDK. Please use Python version 3.5 and up.
If you have a compatible Python interpreter installed, you can use it by setting
the CLOUDSDK_PYTHON environment variable to point to it.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

@Patrik S I have another Google App Engine project that uses Java 11 and Spring Boot and builds using image: maven:3.8.1-openjdk-11. It still builds and deploys successfully.

It appears that the "sudden" change is actually on the part of the Google CLI/SDK discontinuing support for Python 2.

I still think that Atlassian could provide a great service by recommending Docker images that work for the App Engine use cases.

Again, the steps that the pipeline needs to run back to back are:

- mvn install appengine:stage
- pipe: atlassian/google-app-engine-deploy:1.1.1

I remain stuck and appreciate your help. 

Docker image maven:3.8.3-openjdk-8 got me back up and running.

Like Patrik S likes this
0 votes
Nin Tran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 30, 2023

I use image maven:3.8.3-jdk-11 and it worked

Hi Bruce,
To resolve this issue, you need to install Python 3.5 or higher and set the CLOUDSDK_PYTHON environment variable to point to the location of the Python 3.5 executable.

Hi Christian, could you please direct me to an example on how to do that?

How do I install Python on BitBucket cloud? 

Are you sure this is a valid answer?


Right now the pipeline is using Docker image: 


This image has maven, java 8, and Python 2.

What image has maven, java 8, and Python 3.5 or higher?

I wish the at:

would suggest images that work.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events