I have a jenkins site job that builds after a successful build of the release job. The build is deployed to a maven site and displays the version of the build, however it is deploying a SNAPSHOT version.
Is there any way I can pass the git tag that is added at release into the site job so that rather than checking out the release branch (which has moved on to the snapshot) it checks out the tagged release commit and builds off of that?
The maven goals I am using in the site job are -V clean site-deploy
Any ideas would be greatly appreciated!