jenkins the definitive guide
SVN_REVISION For Subversion-based projects, this variable contains the current revision number. CVS_BRANCH For CVS-based project ...
</build> </project> This will produce a MANIFEST.MF file along the following lines: Manifest-Version: 1.0 Archiver-V ...
Now you can add some Groovy scripting to your build job. When you click on “Add build step”, you will see two new entries in the ...
Figure 5.31. Running Groovy scripts as part of a build job 5.6.6. Building Projects in Other Languages Jenkins is a flexible too ...
Figure 5.32. Reporting on test results We look at automated tests in much more detail in Chapter 6, Automated Testing. 5.7.2. Ar ...
Archived artifacts can take a lot of disk space, especially if builds are frequent. For this reason, you may want to only keep t ...
Latest successful build <server-url>/job/<build-job>/lastSuccessfulBuild/artifact/<path-to- artifact> Latest c ...
Figure 5.35. Archiving source code and a binary package Of course, this example is a tad academic: it would probably be simpler ...
Figure 5.36. Email notification You can also opt to send a separate email to the user who’s commit (presumably) broke the build. ...
However, there is a catch: Maven 2/3 build jobs are less flexible than freestyle build jobs, and don’t support multiple build st ...
<groupId>com.acme.common</groupId> <artifactId>cooltools</artifactId> <version>0.0.1-SNAPSHOT</ ...
The Incremental Build option comes in very handy for large, multimodule Maven builds. If you tick this option, when a change is ...
build output. Artifacts, test reports, Javadoc, and so forth, are all generated in standard directories, which means you don’t h ...
<settings...> <servers> <server> <id>nexus-snapshots</id> <username>scott</username> & ...
deployment as part of a build promotion process, configuring an automatic deployment to a different repository when certain qual ...
Figure 5.44. Jenkins displays a link to the corresponding Artifactory repository This link takes you to a page on the Artifactor ...
and the corresponding Jenkins build in Artifactory”). Artifactory also keeps track of the dependencies that were used in the Jen ...
5.9.7. Extra Build Steps in Your Maven Build Jobs By default, the Maven build job only allows for a single Maven goal. There are ...
Jenkins provides excellent support for Grails builds. First, you need to install the Jenkins Grails plugin^12. Once you have ins ...
Figure 5.50. Configuring a Grails build step The Grails build step takes many optional parameters. For example, Grails is finick ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf