Book Image

Jenkins Essentials - Second Edition

By : Mitesh Soni
Book Image

Jenkins Essentials - Second Edition

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. Jenkins is used specifically for Continuous Integration, helping to enforce the principles of agile development. This book focuses on the latest and stable release of Jenkins (2.5 and later), featuring the latest features, such as Pipeline as Code, the new setup experience, and the improved UI. With the all-new Pipeline as Code feature, you will be able to build simple or advanced pipelines easily and rapidly, hence improving your teams' productivity.</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.</p> <p>Finally, you will also learn how to automate your deployment on cloud platforms such as AWS and Microsoft Azure, along with a few advanced testing techniques.</p>
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Eclipse and Jenkins integration


Can we execute a Jenkins job from Eclipse?

Yes, by following these steps:

  1. Go to Help | Install New Software...:
  1. Add a site for Mylyn and click on Next:
  1. Review the items to be installed and click on Next.
  2. Accept the terms of the license agreement.
  3. Click on Finish.
  4. It will start installing the Mylyn package. Once it is finished, restart Eclipse.
  1. In the Windows menu, click on Views.
  2. Select Mylyn and click on Builds.
  3. Click OK:
  1. In the Builds section, click on the build server link:

Build Section is Eclipse IDE with No build server configured

  1. Select Hudson (supports Jenkins) and click on Next:
  1. Provide JenkinsServer, User, and Password details. Click Finish:
  1. Find the list of jobs in the Builds section.
  1. Select any job and click on Run Build to execute it from Eclipse:

Try other options as an exercise.