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

bitbucket pipeline

venkatcss August 14, 2019
Description

Hi team,

When ever i commit into my repository , that all changes, repository files are going to deploy using the bit bucket pipeline.

even one file i changed in my repo.. total code is going from repository.. and deploying to server.

Is it possible to go only modified file ? and deployed path changed file only should replace .. is it possible ?

if it's can you please tell me

bitbucket-pipeline.yml

---
image: "node:10.15.0"
pipelines:
branches:
development:
-
step:
deployment: test
name: "install and build"
script:
- "apt-get update -y"
- "apt-get install -y zip"
- "cd admin/front-end"
- "npm install"
- CI=false
- "npm run build"
- "zip -r /tmp/artifact.zip *"
trigger: automatic
-
step:
image: "python:3.5.7"
name: test
script:
- "apt-get update -y"
- "pip install boto3==1.3.0"
- "apt-get install -y zip"
- "zip -r /tmp/artifact.zip *"
- "python codedeploy_deploy.py"
-
step:
image: "python:3.5.7"
name: "Deploying to dev"
script:
- "apt-get update -y"
- "apt-get install -y zip"
- "pip install boto3==1.3.0"
- "zip -r /tmp/artifact.zip *"
- "python codedeploy_deploy.py"

Regards,
Venkat

1 answer

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2019

Hi @venkatcss

You can use manual steps and manual deployments to deploy only selected pipelines as described in: https://confluence.atlassian.com/bitbucket/run-pipelines-manually-861242583.html

You can also have specific pipelines that target branches, tags or pull-requests as defined in: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html 

There is currently no way to trigger pipeline if only one file or specific path changes.

Thanks,
Peter

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events