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
AUG Leaders

Atlassian Community Events