This plugin used to check if pom.xml contains SNAPSHOT.
use the Build Step called Maven SNAPSHOT Check in Build section
If check the checkbox, it will check if pom.xml contains SNAPSHOT.
Then it will marked the build failed if matches.
use the pre-build step called Maven SNAPSHOT Check in Pre Steps section

step([$class: 'MavenSnapshotCheck', check: 'true'])
or
mavenSnapshotCheck check: 'true'
or, you can customize the pomFiles parameter to check only the specified pom files
(If the pomFiles parameter is not defined, its default value is pom.xml, * */pom.xml),
or, you can customize the excludePomFiles parameter to skip check the specified pom files
(If the excludePomFiles parameter is not defined, its default value is null),
mavenSnapshotCheck check: 'true', pomFiles: 'pom.xml,sub-dir/pom.xml', excludePomFiles: 'sub-dir-2/pom.xml'
Please report bugs and feature requests at https://github.com/jenkinsci/maven-snapshot-check-plugin/issues.
- Build the plugin:
mvn package
- Test locally (invokes a local Jenkins instance with the plugin installed):
mvn hpi:run
See https://jenkinsci.github.io/maven-hpi-plugin/ for details.


