buildPlugin()
The Jenkins project runs its own Jenkins instance for CI builds on ci.jenkins.io.
It will build all plugin repositories in the jenkinsci
organization that have a Jenkinsfile
in the root of the repository.
The typical plugin build (Maven or Gradle) can be run by just having the following statement in the Jenkinsfile
:
buildPlugin()
Gradle support in buildPlugin()
is deprecated and will be eventually removed. Please use:
buildPluginWithGradle()
To learn more about the Pipeline library providing this functionality, see its GitHub repository.