I have a Maven project which includes in the resources a set of database scripts relating to features which have been implemented.
I've created a separate Maven project which produces a jar file used to create a diff between the database scripts and what has been implemented in the database. This executable takes a command line argument which specifies the database details and the output path for the diff file.
What I'd like to do (and I'm open to suggestions on whether this is the best way to tackle this) is to include the diff jar in my project and to execute a goal from Jenkins which executes the jar and stores the diff file as an artifact of the build.
Could anybody suggest a way to do this as I'm not too familiar with Jenkins.