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']
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.
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
Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their Jira Cloud instance. ...
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