Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When file/folder deleted from repo delete same file/folder on deployment server.

Fletch Davies
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 22, 2019 edited

When using pipe: atlassian/sftp-deploy:0.5.2, how when I delete a file/folder from my repo can I automatically delete the same file/folder on my webserver.

 

bitbucket-pipelines.yml

pipelines:
default:
- step:
name: Production
deployment: Production
# trigger: manual # Uncomment to make this a manual deployment.
script:
-
pipe: atlassian/sftp-deploy:0.5.2
variables:
USER: '$SFTP_USERNAME'
PASSWORD: '$SFTP_PASSWORD'
SERVER: '$SFTP_SERVER'
LOCAL_PATH: '$SFTP_LOCAL_PATH'
REMOTE_PATH: '$SFTP_REMOTE_PATH'
DEBUG: 'true'
EXTRA_ARGS: '-P 22 -oStrictHostKeyChecking=no' 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, bitbucket, ci/cd workflows, scale ci cd, bitbucket webinar, devops pipeline, continuous integration, continuous delivery, atlassian learning, software automation, developer tools, build and deploy, pipeline optimization, atlassian community

Scale CI/CD workflows faster with Bitbucket Pipelines 🪣

Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.

Register today
AUG Leaders

Atlassian Community Events