Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Increasing the slave idle timeout


The Jenkins master creates slaves to build the project. These slaves remain alive only for 15 minutes after building the project, that is, they will be reused only if the next build request is received within 15 minutes of finishing the first build. If they don't receive the build request in 15 minutes after building the project, then the Jenkins master will kill the slave instance. The next build request will again create a new slave and build the application on it. Slave creation is a time-consuming process and is not ideal during the development cycle, when you expect quick feedback from your CI server.

In this recipe, you will learn how to increase the slave idle timeout so that you can reuse the slave for a longer time and get quick feedback from the CI server.

Getting ready

This recipe assumes that you already have a Jenkins-enabled application, as discussed in the Adding Jenkins CI to your application recipe.

How to do it…

Perform the following steps:

  1. Log...