This article will introduce how to utilize a project from a Git pugin to complete the whole steps, and include Installing Git Plugin. You can try to read the article, if not understanding how to install Jenkins.
1.Install Git Plugin
You can enter Jenkins’s dashboard to enter Jenkins -> Manage Jenkins -> Manage Plugins, and choose “Available” label as well as search it through the “Filter” tool, as the following diagram.
2.Execute a Project
Set a Project
You can select “New Item” icon and input a project name, which is used to identify your task, as well as choose “Build a free-style-software project”, as the following diagram.
You can enter Jenkins configuration, and fill out values about Git which you want to input. On the other hand, you need to setup another values about Ant, which is a kind of tool building your source code and constructing executive files for Android. Finally, you can set an option about sending an e-mail to notify you after building failures, but this option is optional, as the following diagrams.
Set Project Configurations
First, after saving the above results, you should select project -> Confingure. Then, you can input your Git resource and information, as the following diagrams.
Set Build Information
The purpose of this step is to build your source code and construct an apk file through Ant tool; however, you should offer a build.xml file in your project through Ant tool, as the following diagrams. If skipping the step which the above mentioned, you may be fail on this stage.
Build a project
After setting project configurations, you can press the build icon to complete the stage. Then, you will see the results after the project is successfully built, as the following diagrams.
Book: CI – Continuous integration