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

Project-based security


Project-based Matrix Authorization Strategy is an extension to Matrix-based security. It allows an access control list matrix to be defined for each project. This feature is very useful where we want to give access to specific jobs to specific users, so the security of Jenkins is not compromised.

  1. Go to Manage Jenkins | Global Security Configuration. In the Authorization section, select Project-based Matrix Authorization Strategy.
  2. Give admin all rights and Save:
  1. Go to the incognito window where we logged in using the credentials for Shreyansh.
  2. Refresh the page and you will get Access Denied. The reason is we haven't given any rights to Shreyansh in Project-based Matrix Authorization Strategy:
  1. We need to provide overall read rights so Shreyansh can access the Jenkins dashboard:
  1. Now, go to the individual build job as an admin and select Enable project-based security in the job configuration page.
  2. Add Sreyansh as a User and click on Save:
  1. Now, go to the incognito window where...