I am planning to do below
Copy from git repository to a Windows machine each time a commit/ update is made to that folder only. May be something like Jenkins can be used for same but unable to determine how can I do it?
If the repository is local, it would be easier to push directly to the Windows machine, assuming it has an SSH server (which Windows 10 2019.09 and more now have )
If the repository is distant, you can configure a webhook in order to call a Jenkins server for a specific job.
See for instance " Triggering a Jenkins build every time changes are pushed to a Git branch on GitHub " by David Luet
Or you can define a Jenkins pipeline that GitLab-CI can execute .
In both cases, your Jenkins job will have to copy the checked out repository.
I would use git bundle
to compress the repository into one file (or a simple tar), copy it over the Windows server, and decompress there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.