'Jenkins Update script files on RHEL

I have an svn repository that has a base directory of /Scripts. Inside that directory is /process and /processes which contain various files and shell scripts. Inside RHEL is my home directory which has two directories /process and /processes as well as various files, the files in the home directory correlate to svn /Scripts folder and /process and processes on the server have the code from /process, /processes svn repos.

I need to create a build that can update any script inside of /process or /processes and also update files in their respective directories and possible a directory up (Scripts in SVN, home directory in RHEL)

How can this be achieved without building the entire directory?

  • my solution was to use parameterized builds passing in the specific location of the script (ex: I would pass "processes/techex/course_completions" as a parameter. I could then also checkout processes/ with files only but that would then checkout all the files in the /processes directory when I may only need to update a few.

I am newer to Jenkins and build automation and really want to be sure I am not going down the wrong direction as I could not find any info on this specific issue. I do not use a jenkinsfile.

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source