I am looking to automate a manual copy paste activity using SVN, Jenkins and Urban Code Deploy.
We have now created a SVN repo to have the same directory structure of the Unix server Dir structure. The challenge is, I cannot do a clean deploy as I only have to pick file which is changed in any of the folder and place it in the respective folder on the Unix server.
I am not able to figure out how to create a Jenkins job to pick files from multiple folders and create one package and deploy using Urban Code Deploy to multiple folders on the destination server.
a
|------b
| --------b
c
|-------d
--------v
--------m
This is just an illustration of the folder structure, in SVN and Unix server. Any help is appreciated
You can pick only the modified files for a particular revision using the following commands and check them out to their respective directories in your Unix server:
svn checkout https://org.svn.host/path/to/your/file /path/to/target_dir --depth empty --revision <revisionNumber>
cd /path/to/target_dir
svn up file_you_want