Hello,
In another tread before I mention already I'm new to Jenkins.
But a thing what I have to make is:
- Another company is putting SVN (=folder) a folder with files, which is the new version like:
- Main_folder <-- When in this folder a new folder is placed, Jenkins must be triggered.
- <folder_name>-1.0.3
- <folder_name>-1.0.4
- <folder_name>- etc
- When a new folder is there, Jenkins must be triggered;
- Jenkins must capture only the new folder with the content.
- Then look in Nexus if the folder <folder_name>-x.x.x already exist in Nexus.
- If already exist in Nexus -->
- send a mail with version already exist
- If not exist in Nexus -->
- zip the complete <folder_name>-x.x.x
- Put it in Nexus
- Send a e-mail with info
This is in short what I have to make. Marked in
red is for me the hard to define part.
I think that I can solve this by using "Source Code Management --> Subversion" of Jenkins.
Fill here the Repository URL in with the right Local module directory so that Jenkins job is only triggered by the right directory.
But what for me hard to understand is, how does Jenkins know or how can we capture the last added directory in SVN?
I believe a folder has a attribute number let say it has now number 52. But if you add a new file or folder to a directory it is increased to 53. Must I think this way or...?
So I'm looking for an example, so that I understand how I can solve this.
Thanks in advance,
Nico.