Plugin Documentation

Goals available for this plugin:

GoalDescription
jenkins:cliConnect to a Jenkins server and execute one or more Jenkins CLI commands.
jenkins:createjobsConnect to a Jenkins server and create a Jenkins job
jenkins:deletejobConnect to a Jenkins server and delete a job
jenkins:deletejobsConnect to a Jenkins server and delete one or more jobs
jenkins:genjobGenerate an XML config file in the format required for a Jenkins job
jenkins:genjobsGenerate XML config files in the format required for Jenkins jobs
jenkins:getjobConnect to a Jenkins server and retrieve an XML document describing the job configuration
jenkins:getjobsConnect to a Jenkins server and retrieve XML documents describing jobs
jenkins:runjobConnect to a Jenkins server and kick off a job
jenkins:runjobsConnect to a Jenkins server and kick off one or more jobs
jenkins:syncworkspaceSynchronize a Jenkins workspace to another location using rsync. To use this mojo, the rsync utility must be installed and in your path. If the mojo completes successfully the destination directory will contain the exact same set of files as the source directory. For the purposes of this mojo, "exactly the same" means, all the files on both sides have the same name, the same size, and the same last modified date.
jenkins:updatejobsConnect to a Jenkins server and update one or more Jenkins job

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.0
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.kuali.maven.plugins</groupId>
          <artifactId>jenkins-maven-plugin</artifactId>
          <version>1.1.9</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.kuali.maven.plugins</groupId>
        <artifactId>jenkins-maven-plugin</artifactId>
        <version>1.1.9</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"