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

Why does my build take so long?

Lenon Calsavara
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!
October 10, 2023

I merged a PR with just one file and sftp-deploy:0.7. seems to replace all of them in the repository.

 

My configuration:

image: php:8.0

pipelines:
branches:
development:
- step:
name: Deploy to development
script:
- pipe: atlassian/sftp-deploy:0.7.1
variables:
USER: $USER_SFTP
SERVER: $IP_SERVER
REMOTE_PATH: $PATH
PASSWORD: $PASSWORD
- step:
name: Run Composer
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2023

Hi Lenon and welcome to the community!

I believe that this is standard behavior of sftp. You can try using the rsync pipe instead:

The man page of rsync mentions the following:

Rsync finds files that need to be transferred using a "quick check" algorithm (by default)
that looks for files that have changed in size or in last-modified time. Any changes in
the other preserved attributes (as requested by options) are made on the destination file
directly when the quick check indicates that the file’s data does not need to be updated.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events