Book Image

Hands-On Continuous Integration and Delivery

By : Jean-Marcel Belmont
Book Image

Hands-On Continuous Integration and Delivery

By: Jean-Marcel Belmont

Overview of this book

Hands-On Continuous Integration and Delivery starts with the fundamentals of continuous integration (CI) and continuous delivery (CD) and where it fits in the DevOps ecosystem. You will explore the importance of stakeholder collaboration as part of CI/CD. As you make your way through the chapters, you will get to grips with Jenkins UI, and learn to install Jenkins on different platforms, add plugins, and write freestyle scripts. Next, you will gain hands-on experience of developing plugins with Jenkins UI, building the Jenkins 2.0 pipeline, and performing Docker integration. In the concluding chapters, you will install Travis CI and Circle CI and carry out scripting, logging, and debugging, helping you to acquire a broad knowledge of CI/CD with Travis CI and CircleCI. By the end of this book, you will have a detailed understanding of best practices for CI/CD systems and be able to implement them with confidence.
Table of Contents (18 chapters)

Running build in debug mode

Another technique to debug build time issues is by running a debug build in Travis CI. You need to email [email protected] to toggle this feature on for public repositories while private repositories have the debug mode enabled by default. The reason for this is that anyone can come across a log containing the SSH access and can then make a connection to the virtual machine and then potentially read out secret environment information, such as client IDs, secrets, and more.

Getting an API token from the profile page

To restart a job in debug mode via the API, you need to send a POST request to the job's debug endpoint. This request needs to be authenticated by adding your Travis CI API token...