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)

Chapter 6: Writing Freestyle Scripts

  1. The question mark symbol is handy when you need to know the details about a build configuration option.
  2. It is a Crontab syntax that you can use for polling your version control system.
  3. Yes, you can use more than one language, for instance you may have a go script and a Node.js script that you need to run in your environment.
  4. It is a Unix environment that you are operating in and a lot of Unix commands are available for use like sed and awk.
  1. A global property will be available throughout all the build jobs you add while a project level environment variable will only be available in the specific project you add them in. This is enabled by the EnvInject Plugin.
  2. It is useful to see the command executed and/or the output of the command so that you can more easily debug issues that occur with each command that is run in the CI environment.
  3. The...