Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Maven uses it for building your plugin. All Jenkins plugins should be based on the Plugin Parent POM:

Code Block
xml
xml

<parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>2.2</version>
</parent>

If the project is created using the provided archetype, everything is already set up. Up to Jenkins 1.645 the Plugin Parent POM was part of the main Jenkins project and the POM version was the baseline Jenkins version to be used for the plugin.

When using Parent POM version 2.2 or later, the baseline version is selection using the jenkins.version property, e.g.:

Code Block
xml
xml

<properties>
    <jenkins.version>1.609.1</jenkins.version>
</properties>

src/main/java

Java source files of the plugin.

...