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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Building on Google cloud from pipeline

Hi I am trying to run a build from the bitbucket pipeline. 

 

Somehow my syntax isn't accepted and I can't really find in documentation what is going wrong. So just a few questions, is it possible since I am pretty new to bitbucket pipelines, is it possible to launch some shell scripts that are in the repo on a remote server? And is it possible to turn build machines on and off in google cloud engine? 

 

Here is my pipeline:

 

pipelines: - pipe: atlassian/google-app-engine-deploy:0.7.2 - parallel: - step: name: 'gcr.io/cloud-builders/gcloud' variables: KEY_FILE: build-server-project-fbac12490bcc.json  args: ['compute', 'instances', 'start', ' build-server-turnoff-when-unused', '--zone', 'europe-west4-a'] - step: name: 'gcr.io/cloud-builders/gcloud' entrypoint: 'bash' dir: 'Project/build' args: ['/mnt/disks/sdb/Project-dev/build-dev.sh'] - step: #Stop Instance name: 'gcr.io/cloud-builders/gcloud' args: ['compute', 'instances', 'stop', build-server-turnoff-when-unused, '--zone', 'europe-west4-a']

 

1 answer

0 votes

@j_jungschlager could you please share this in formatted string just as you write in your pipeline , with identation etc.?

I tried to order it, but did not succeed.

Thanks

 

Cheers, Galyna

Regarding your questions:

1) is it possible to launch some shell scripts that are in the repo on a remote server

>> yes, it is possible right now, you pipe ssh-run , if it is that what you want https://bitbucket.org/atlassian/ssh-run/src/master/

2) is it possible to turn build machines on and off in google cloud engine

>> Do you mean google app engine?

Or just gcp instance?

If first - no, this is PAAS, if second - we will think about this ability, but right now having ssh to it, you can try with our existing pipes.

 

Regards, Galyna

Or you can directly use gcloud tool, and simply follow docs https://cloud.google.com/compute/docs/instances/stop-start-instance#gcloud

I guess, this is much cleaner way to properly start-stop instance

Suggest an answer

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

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

880 views 14 20
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