Book Image

Jenkins Essentials

By : Mitesh Soni
Book Image

Jenkins Essentials

By: Mitesh Soni

Overview of this book

<p>In agile development practices, developers need to integrate their work frequently to fix bugs or to create a new feature or functionality. To integrate all work efficiently and verify it is an error-prone and time-consuming manual task. Jenkins is used specifically for continuous integration, helping to enforce the principles of agile development.</p> <p>This book begins by tackling the installation of the necessary software dependencies and libraries you'll need to perform continuous integration for a Java application. From there, you'll integrate code repositories, applications, and build tools for the implementation of continuous integration. Finally, you'll explore the automated deployment of an application in Tomcat, along with details on managing and configuring Jenkins based on your requirements by using plugins.</p>
Table of Contents (15 chapters)
Jenkins Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a new build job in Jenkins with Git


  1. On the Jenkins dashboard, click on Manage Jenkins and select Manage Plugins. Click on the Available tab and write github plugin in the search box.

  2. Click the checkbox and click on the button, Download now and install after restart.

  3. Restart Jenkins.

  4. Create a new Freestyle project. Provide Item name and click on OK.

  5. Configure Git in the Source Code Management section.

  6. Add the Invoke Ant build step by clicking on Add build step.

  7. Execute the build.

  8. Click on Console Output to see the progress of the build.

  9. Once the build has succeeded, verify Workspace in the build job.

  10. Done!