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

Installing and configuring the Git repository on CentOS


Git is a free and open source distributed version control system. In this section, we will try to install and configure Git:

  1. Open a terminal in the CentOS-based system and execute the yum install git command in the terminal.
  2. Once it is successfully installed, verify the version with the git --version command.
  1. Submit information about the user with the use of the git config command so that commit messages will be generated with the correct information attached.
  2. Provide the name and email address to embed into commits.
  3. To create a workspace environment, create a directory called git in the home directory and then create a subdirectory inside of that called development.
  4. Use mkdir -p ~/git/development ; cd ~/git/development in the terminal.
  5. Copy the AntExample1 directory into the development folder.
  6. Convert an existing project into a workspace environment by using the git init command.
  7. Once the repository is initialized, add files and folders:
  1. Commit...