A
A
Alexander Mikhailenko2019-01-10 18:21:23
PHP
Alexander Mikhailenko, 2019-01-10 18:21:23

How to upload only changed files from Jenkins to server?

Good afternoon, please tell me how you can organize the work so that Jenkins uploads only the changed files from the commit to the server.
The repository lies on bitbucket, a certain branch is tracked from there, and then everything needs to be sent to the server, but each time it takes more than an hour to download all the files.
Is there any way to organize such work? git-ftp did not work for some reason, it gave such messages for the last time

Do you want to ignore and upload all files again? [y/N]: Finished: SUCCESS

and with this, only the git-ftp-log file appeared on the server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-01-10
@saboteur_kiev

depending on the server.
Why can't the server do a git pull on this particular branch?
Well, or use rsync for the specified folder, in which the git pull was previously done. rsync will see what has changed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question