This plugin executes a groovy script in the Jenkins JVM. Typically, the script checks some conditions and changes accordingly the build result, puts badges next to the build in the build history and/or displays information on the build summary page.
https://wiki.jenkins.io/display/JENKINS/Groovy+Postbuild+Plugin