Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Using Jenkins
Now that you’ve installed Jenkins and Git, you have the source code under version control, and you can run the tests via the command line, you can set up Jenkins to do it automatically for you.
1. Open the Jenkins dashboard.
2. Click on New Job. In the Job name, type On Your Bike Chapter 10, and select Build a free-style software project.
3. Enter a description for your project, and under Build triggers, check build periodically. Enter H/15 * * * * into the schedule. This will make the build run every 15 minutes. Or you can have the build run on check-ins into the Git repository if you prefer. Figure 10.14 shows the Jenkins setup.
Figure 10.14 Setting up a Jenkins job
4. You’ll also need to install the Jenkins Git plug-in. Go ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access