Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Continuous Integration with Jenkins

You're reading from   Learning Continuous Integration with Jenkins

Arrow left icon
Product type Paperback
Published in May 2016
Publisher Packt
ISBN-13 9781785284830
Length 542 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nikhil Pathania Nikhil Pathania
Author Profile Icon Nikhil Pathania
Nikhil Pathania
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Concepts of Continuous Integration FREE CHAPTER 2. Setting up Jenkins 3. Configuring Jenkins 4. Continuous Integration Using Jenkins – Part I 5. Continuous Integration Using Jenkins – Part II 6. Continuous Delivery Using Jenkins 7. Continuous Deployment Using Jenkins 8. Jenkins Best Practices Index

Creating your first Jenkins job


In the current section, we will see how to create a Jenkins Job to clean up the %temp% directory on our Windows machine where the Jenkins master server is running. We will also configure it to send an e-mail notification. We will also see how Jenkins incorporates variables (Jenkins system variable and Windows system variable) while performing various tasks. The steps are as follows:

  1. From the Jenkins Dashboard, click on the New Item link present on the left side. This is the link to create a new Jenkins job.

  2. Name your Jenkins job Cleaning_Temp_Directory in the Item name field.

  3. Select the Freestyle project option that is present right below the Item name field.

  4. Click on the OK button to create the Jenkins job.

  5. You will be automatically redirected to the page where you can configure your Jenkins job.

    Note

    The Jenkins job name contains underscores between the words. But this is not strictly necessary, as Jenkins has its own way of dealing with blank spaces. However,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image