I have a maven release project configured on Jenkins. I have also configured Post Build action 'Deploy artifacts to Artifactory' with target snapshot and release repositories.
During snapshot build, artifacts are getting build and getting uploaded to artifactory without any issue.
But, when i perform maven release (m2 release) with clean install goal. release artifacts are getting build and getting installed only into local .m2 directory. Release artifacts are not getting deployed on release target repository defined in Post build deploy option.
Please suggest, how should I be able to publish the artifacts to Artifactory.