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)

Debugging issues with a freestyle job

Whenever you run a build in Jenkins for a build item, you can see all the details of the build by clicking on the specific build job that you want to see.

Build Project View

Here is the Build History that you need to focus on:

Now if you click on an actual build, you will go to the following screen:

If you click the Console Output link, then you will see a detailed CI Build log that shows all the steps the CI server did. Remember that we wrote a freestyle shell script. I'm adding the contents of the shell script for you to see:

echo "$SAMPLE_VALUE"
echo "$ANOTHER_SAMPLE_NAME"
go test

Notice here that I added the two different environment variables that we defined...