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

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

ERROR: (gcloud.app.deploy) [/opt/atlassian/pipelines/agent/build/app.yaml] does not exist

I am trying to deploy a spring boot microservices application to Google App Engine from Bitbucket Pipelines. I am getting this below error after commiting the code,

 

INFO: Setting up environment.
echo "${KEY_FILE}" | base64 -d >> /tmp/key-file.json
gcloud auth activate-service-account --key-file /tmp/key-file.json --quiet --verbosity=warning
Activated service account credentials for: [testproject-iamserviceaccoun@testproject.iam.gserviceaccount.com]
gcloud config set project testproject --quiet --verbosity=warning
Updated property [core/project].

INFO: Starting deployment to GCP app engine...
gcloud app --quiet deploy 'app.yaml' --verbosity=warning
ERROR: (gcloud.app.deploy) [/opt/atlassian/pipelines/agent/build/app.yaml] does not exist.
✖ Deployment failed.

Please help me to solve this issue.

Build Tool - Maven

bitbucket-pipelines.yml

pipelines:
  default:
     - step: 
        name: Deploy to Google cloud
        deployment: test
        script: 
          - pipe: atlassian/google-app-engine-deploy:0.7.3
            variables: 
              KEY_FILE: $KEY_FILE
              PROJECT: 'testproject'

 

I am trying to deploy a spring boot microservices application to Google App Engine from Bitbucket Pipelines. I am getting this below error after commiting the code,

INFO: Setting up environment.
echo "${KEY_FILE}" | base64 -d >> /tmp/key-file.json
gcloud auth activate-service-account --key-file /tmp/key-file.json --quiet --verbosity=warning
Activated service account credentials for: [testproject-iamserviceaccoun@testproject.iam.gserviceaccount.com]
gcloud config set project testproject --quiet --verbosity=warning
Updated property [core/project].

INFO: Starting deployment to GCP app engine...
gcloud app --quiet deploy 'app.yaml' --verbosity=warning
ERROR: (gcloud.app.deploy) [/opt/atlassian/pipelines/agent/build/app.yaml] does not exist.
✖ Deployment failed.

Please help me to solve this issue.

Build Tool - Maven

bitbucket-pipelines.yml

pipelines:
  default:
     - step: 
        name: Deploy to Google cloud
        deployment: test
        script: 
          - pipe: atlassian/google-app-engine-deploy:0.7.3
            variables: 
              KEY_FILE: $KEY_FILE
              PROJECT: 'testproject'

src/main/appengine/app.yaml

runtime: java
env: flex

handlers:
- url: /.*
  script: this field is required, but ignored

 

1 answer

1 accepted

1 vote
Answer accepted

Hello,

Based on the info you posted here, I believe the reason for the error is that the file app.yaml doesn't exist at the root of the repo, but in a directory which hasn't been specified.

If the path of this file in your repo is src/main/appengine/app.yaml, can you adjust the pipe definition as follows, to specify the path of the file?

- pipe: atlassian/google-app-engine-deploy:0.7.3
  variables:
    KEY_FILE: $KEY_FILE
    PROJECT: 'testproject'
    DEPLOYABLES: 'src/main/appengine/app.yaml'

Please feel free to let me know if this works or if you're still having issues.

Kind regards,
Theodora

Thank You :) It worked like a charm.

That's great to hear! Glad to have helped!

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,869 views 0 7
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