I need to monitor a file with Logmon. The file directory changes for every instance. The file being monitored in in Jenkins Software. The directory structure is as follows
c:\Software\Jenkins\home\Jobs\Project Name\builds\buildnumber\log
Examples:
c:\Software\Jenkins\home\Jobs\MyProject\builds\1341\log
c:\Software\Jenkins\home\Jobs\MyProject\builds\1342\log
c:\Software\Jenkins\home\Jobs\MyProject\builds\1343\log
For each build run, a new Build folder is created.
How can I get the logmon monitor to view the next build number log file after the build is successful.
There is a file called nextBuildNumber in the following folder
c:\Software\Jenkins\home\Jobs\MyProject\nextBuildNumber - This will tell us what the next build number is.
Is there a way to get the logmon or another probe to change the file path, after it detects the NextBuildNumber?