Jenkins - (Java) API (Object Model)


Jenkins is primarily a set of Java classes that model the concepts of a build system.

All classes are bound to URLs by using Stapler.

Object Model


The root of the object model is Hudson, and all the other model objects are reachable from it. It's a singleton instance.

Build, Job

There are representational classes like:

  • Project (Also known as Job),
  • Build (build.getChangeSet() have all changes in de build)

Part of a build

Then there are interfaces and classes that model code that performs a part of a build, such as:

  • SCM for accessing source code control system,
  • Ant for performing an Ant-based build,
  • Mailer for sending out e-mail notifications.

Documentation / Reference

Powered by ComboStrap