buildPlugin(configurations: buildPlugin.recommendedConfigurations())
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(configurations: buildPlugin.recommendedConfigurations())
To learn more about the Pipeline library providing this functionality, see its GitHub repository.