I want to execute some script on the ec2 instance from the bitbucket-pipelines.yml?

I want to execute some script on the ec2 instance(Created by elestic beanstalk) from the bitbucket-pipeline.yml, how to execute such script on the instance.

Refer the bitbucket-pipeline.yml :

image: java:8

pipelines:
# default:
# - step:
# script: # Modify the commands below to build your repository.
# - ./gradlew build -x test
# - ./gradlew jettyRun
branches:
development:
- step:
script: # Modify the commands below to build your repository.
- apt-get update && apt-get install -y python-dev
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install awsebcli --upgrade
- ./gradlew build -x test
- eb init ApplicationName -r us-west-2 -p Java
- eb deploy

1 answer

0 votes

Hi Yogesh,

Can you clarify which part you are having trouble with?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 3 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

41 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you