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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.