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:env8No description.
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:riceNo description.
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:syncworkspacesSync any workspaces from the Jenkins master to a workspace server. Only sync workspaces where the build number has changed since the last sync call.
jenkins:updatejobsConnect to a Jenkins server and update one or more Jenkins job
jenkins:updatejobsmavenversionNo description.
jenkins:updateparameterizedbuildnumberUpdate the default value of the parameterized build number for the indicated jobs so it matches the build number of the currently executing job. Note that this updates the config.xml on the local file system and will have no affect until Jenkins is restarted or configuration is reloaded from disk.
jenkins:updateslaveamiUpdate the slave AMI being used by the Jenkins EC2 plugin

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.2.6</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.2.6</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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