I have created a job in Jenkins to get latest changes made in perforce (p4) depot and compiling the same.
Now I want to make condition, where “if there are any changes in specific folder in my WS path then only the build script should trigger if there is no change then build should skip and trigger mail only.
So I am checking if I can diff the specific folder of ws path of Jenkins with depot path.
Please do suggest me in Jenkins how I can diff the ws with depot.
WS- workspace
As of now I able to download the WS in Jenkins with perforce credentials and compile the same.
next step: diff the ws with depot, only trigger build if there are any changes in specified folder of WS.