I want to build a Maven project using Jenkins. However, a project should only be built if a specific file in the SVN repository has been modified (and contains a special key)
So my plan is to create a task with two build steps:
The second step should be called only if the status check in step 1 returned "true".
Is there any way to do this? Well, I think I could return exit code 1 to the first script if the condition is not met. This will stop the build right away, but the job will be marked as "crash". So this is not a good idea, as the red icon makes my users panic; -)
Any other ideas around this?
Cheers, Frank
Frank source share