You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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']
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.