First of all, what can Jenkins do? The next two typical scenarios.
Git/repo + Gerrit + Jenkins creates a powerful Android continuous integration environment. The user uploads the code to the Gerrit to do code review and the storage, the user uploads the code operation and the storage can trigger Jenkins obtains the code to build automatically . Jenkins can also be built on a timed basis, and the results can be automatically sent to relevant people via email. Of course, when the user submits the code to Gerrit, Gerrit also automatically sends an email to the person with Code view permission.
# #备注:
Repo Introduction:
Android using git as a code management tool, I developed Gerrit for code review to better manage the code centrally, and also developed the Repo command-line tool to encapsulate Git partial commands, Organize the hundreds Git library effectively.
Gerrit Introduction:
A free, open source code review software that uses a Web interface. Using a Web browser, the same team of software programmers can review each other's revised program code, decide whether to submit, return or continue to modify. It uses git as the underlying version control system.
Some things about the git operation code:
git add
Git commit
If you need to submit the code to the local repository, add the file to the index area via git add, and then the Git commit method can actually submit the code to the library.
git push
If the function is well developed, you need to share the local code with the other members of the project team, and if the locally loaded code is in the remote repository via the git push command
2. Svn/git + Jenkins in the case of the APK code, Jenkins can monitor the code configuration library such as Svn/git, and once someone commits the code, it automatically gets the code to build, and the build results can be notified to people in many ways, including mail.
Jenkins Learning Notes Series 1