For the manager object to exists we need to install the Groovy Postbuild Plugin
badge
manager.addBadge("error.gif", "Failed build") manager.addBadge("star-gold.gif", "Successful build")