Let's configure an Ant project in Jenkins with static code analysis, compilation of files, creation of a package file, and archiving it so you can use it later in another build job or project.
Configuring an Ant project for execution
Getting ready
You have already created an Ant project in Jenkins in Chapter 1, Getting Started with Jenkins in the recipe Creating a Freestyle Job for an Ant project.
How to do it...
- Go to Jenkins dashboard | Ant project | General section.
- Select Discard old builds | Configure Max # of builds to keep (to avoid too many builds and save...