Jenkins 2 Tutorial For Beginners – Getting Started Guide

Jenkins 2.0 tutorial for beginners

Jenkins is the widely adopted open source continuous integration tool. It has been really long since for the release of 2.0 since 1.0. A lot has changed in Jenkins 2.0 when compared to the old version.

Following are the key things to be noted.

1. Pipeline as Code
2. Better UI and UX
3. Improvement in security and plugins

Pipeline as Code

Jenkins 2.0 has introduced a DSL by which by which you can version your build, test, deploy pipelines as a code. Pipeline code is wrapped around groovy script which is easy to write and manage. An example pipeline code is shown below.

node(‘linux’){
  git url: 'https://github.com/devopscube/simple-maven-pet-clinic-app.git'
  def mvnHome = tool 'M2'
  env.PATH = "${MNHOME}/bin:${env.PATH}"
  sh 'mvn -B clean verify'
}

Better UI and UX

Jenkins 2.0 has a better User interface. The pipeline design is also great in which the whole flow is visualized. Now you can configure the user, password and plugins right from the moment you start the Jenkins instance through awesome UI.

Jenkins 2 Tutorials

We will be covering all the important topics in Jenkins 2 in this tutorial series which will get you started with the new core components.

Following is the list to get started with.

1. Installing and configuring Jenkins 2.0

2. Setting up a distributed Jenkins architecture (Master and slaves)

3. Configuring Docker Containers as Build Slaves

READ  How to Install and Configure Jenkins 2 on centos/Redhat Servers

Free DevOps Resources

Get DevOps news, tutorials and resources in your inbox. A perfect way If you want to get started with devops. Like you, we dont like spam.

Leave a Reply

Your email address will not be published. Required fields are marked *