Building a plugin
To build a plugin run following Maven command:
mvn install
When rebuilding a plugin it is sometimes helpful to clean the target directory previously:
mvn clean install
This will create a plugin artifact at target/<plugin>.hpi that can be deployed manually to Jenkins.
CI Integration
Hosted Jenkins plugins are automatically built with each commit by placing Jenkinsfile at project root.
#!groovy
buildPlugin()