Creating first Jenkins pipeline: tutorial
Jenkins uses a feature called Jenkins Pipeline which is a collection of jobs that brings the software from version control into the hands of the end-users by using automation tools. They represent multiple Jenkins jobs as one whole workflow in the form of a pipeline. In this blog, I am going to share my knowledge on how can we write multiple Jenkins jobs as a pipeline and it uses two different syntaxes i.e. Declarative and Scripted pipeline and i n our examples, we're going to use the Scripted Pipeline which is following a more imperative programming model built with Groovy. Prerequisite: Code on bitbucket/ GitHub Jenkins Installation Download required plugins to run pipelines like Pipeline, SonarQube Scanner, Check Style, Junit, Git Integration, Maven Integration. Sonar up and running. Let’s start creating pipeline will do below tasks: Clone Project from Jenkins Build and run Junit test cases Run Sonar Run Checkstyle Package it as a jar file ...