jenkins the definitive guide

(Jeff_L) #1
<expression>0 0 * * *</expression>
</trigger>
<repository>
<remote>http://google-guice.googlecode.com/svn/trunk/</remote>
</repository>
<mail>
<recipients>[email protected]</recipients>
</mail>
</job>

This job uses a number of standard configurations such as , , and


. The code is checked out from a Subversion repository (defined in the
element), and a cron runs the job nightly at 00:00. Email notifications are sent to people
specified with the element. This configuration also adds a link back to the project’s page in the
description table that is generated automatically for each job.

The generated job is displayed in your Jenkins server as illustrated in Figure 10.27, “A job generated
by the Maven Jenkins plugin”.


Figure 10.27. A job generated by the Maven Jenkins plugin


Here’s another job building the Jenkins master branch at GitHub:


<job>
<id>jenkins-master</id>
<jdkName>jdk1.6.0</jdkName>
<numToKeep>5</numToKeep>
<mavenName>apache-maven-3</mavenName>
<trigger>
<type>timer</type>
<expression>0 1 * * *</expression>
</trigger>
<scmType>git</scmType>
<repository>
<remote>git://github.com/jenkinsci/jenkins.git</remote>
Free download pdf