Posts

Showing posts with the label Jenkins

Manage Jenkins

Image
How do I use "Manage Jenkins" page?  Here I'm with all of the screenshots of each section of the Manage Jenkins page. this might contain "Monitors" that alert you when a new version of the Jenkins software or a security update is available. Each monitor includes links to the changelog that describes the new update as well as instructions to download and install the update. The Manage Jenkins page displays a series of tiles for common task areas, arranged in logical groupings:  System Configuration  — This section is designed for general system configuration, managing nodes and clouds, global tool configuration, and plugin management. Security  —  This section is designed to configure global security (authentication, authorization, and global settings that protect your Jenkins instance from intrusions) and screens to manage the credentials that provide secure access third-party sites and applications that interact with Jenkins. Status Information  —  This se...

Jenkins Seed Job using DSL Script to Generate Job

Image
 Hey Guys!! How are you? In this learning post I would like to share with you awesome Jenkins feature experiment -  Infrastructure as a Code (IaC). The entire Jenkins Job or Project can be configured manually step-by-step in the regular fashion, when you click on the "new item" on the Jenkins Dashboard to create a project. But here story is different - with DSL script you could do the same thing that is dynamically creating a Job with a single flexible scalable durable way with Groovy script.  Jenkins DSL Groovy script generating dynamic Job Groovy is more like Shell scripting but totally executable on Java Virtual Machine. Those who know Java it will be easy to understand the Groovy syntax and its blocks. If you don't then no worries we will be coming up with easy to use DSL script in the following sections. Prerequisite for DSL Job creation Jenkins master-slave installed up and running. SCM installed/github Up and running Jenkins must have plugins installed such as ...

Jenkins Continuous Delivery

Image
👋 Warm Welcome 🤗 to my dear DevOps DevSecOps /SRE engineers here in this post we will exploring about Jenkins configured to run a full fledged CI/CD flow. Preparation for CI/CD The full length end-to-end automation can be done with the Jenkins Jobs. We need to identify how the dependencies forms the Job chain, what job become upstream and what all jobs can be downstream to which job also you need to plan as per your project needs. Here I'm taking the scenario where Java based web application package and deployment to different environments such as QA, Staging and for Production with approval to run the Build. The sequence of steps involved in this process are: Install Tomcat server  Using Jenkins CICD job deploy  Install Tomcat Server on a VM/Cloud instance Here the VM/Cloud instance assuming as Ubuntu Linux machine. d Step 1: Install JRE/Java To install Tomcat on any Platform there should be JRE available. To have JRE we do install JDK which is suitable to the Tomca...

Jenkins installation on Windows

Image
 Hello DevOps Guys, We will install the Jenkins Controller on the Windows machine.  How to install Jenkins on Windows machine? Here in this post we will explore Step-by-Step installation instructions for Jenkins on Windows platform. Jenkins installation on Windows Step 1: Install and set Java Please visit the Oracle Java SE download page:  http://www.oracle.com/technetwork/java/javase/downloads/index.html . Oracle providing the new option on the download page, that is "JDK Script Friendly URLs" page. Choose the JDK for your operating system (Windows 10 or 11) 64bit to download. Double click downloaded file launches installer wizard, proceed with the agree and set up the installation location as per your disk/drive availability. Verification of Java installation  Open a CMD prompt run "java -version" if Java installed correctly in the PATH you will get the installed version as output. if not set the PATH from the type ENVIRONMENT VARAIABLES search ->EDIT ENVIRONME...

Jenkins Active choices parameter - Dynamic input

Image
Hello DevOps team!! Today I've revisited the experiment with the Jenkins ACTIVE CHOICE Parameter  to get the Dynamic parameters effect on the Build Job parameters. Installation Active Choice parameter - Groovy Script Prerequisite: Jenkins installed Up and running on your target master machine. Jenkins URL accessible   Step 1: Install Active Choice plugin On the Jenkins Dashboard, select the Manage Jenkins, Plugin- Manager, In the Available tab search for word 'Active', where you can see Active Choice plugin and choose installation option, and this will enables three different parameters in the "Add Paramters" list. They are : 1. Active choice parameter 2. Active Choice Reactive parameter 3. Active choice Reactive Reference parameter Here In my example I will use two of them, Firstly Active Choice Parameter for "environment". Create new item Name: active_project select a freestyle project click OK button. In the General tab, select the checkbo...

Jenkins integration with SonarQube Scanner

Image
Hello Guys, DevSecOps team members, In this post I would like to integrate Jenkins with SonarQube.  SonarQube is an open-source product for continuous inspection of code quality.   The main objective of SonarQube to check Code Quality and provide the Code Security. SonarQube empowers and ensure all developers to write cleaner and safer code.  In this experiment we will be running the SonarQube on a Docker Engine. Prerequisites We must have following pre-requisites to do this experiment SonarQube Server installed, up and running state Jenkins installed and Master is up and running Sonar Scanner installed on same machine(container) where Jenkins build job executes Important URLs  The following links are very helpful while dealing with the SonarQube and its integration with Jenkins. Docker play-ground :  Sonar Scanner Link   SonarQube on DockerHub     Step 1: Preparing SonarQube on the Docker You could installed Docker and it is Up and runn...

Sidebar Links in Jenkins Job

Image
Hello Everyone! Here I will give some real use cases where the Jenkins integration with Sidebar Links requirement for a Jenkins Project.  Case 1: Your project might have a complete build strategy defined and it is shared on a Confluence page or common documentation platform. This document need to be linked to the Jenkins Job. Case 2 : Your QA team want to have all the jobs which they want to access on a single page. Even though you have placed all the QA-related jobs into a View. The solution is using Sidebar Link to the View from the Job. Case 3: A QA team working on two different Product testings where you have the two separate Jobs, but in the Organization the jobs are grown where a listing of all jobs will make difficult to search for the second job. instead of searching for the second job if we have the second job on the first job page then QA team life will be easy.  How to use Sidebar Links in a Jenkins Job? Sidebar link can be used for linking following: Documentation...

Jenkins Manage Assign Roles - Role based Strategy

Image
Here I am finding a solution for the users who belong to QA must have access only to the QA-related jobs. In this post,  Situation IT Organizations includes multiple teams such as: QA, Release, Developer and DBA or Middleware Engineers  Jenkins Master - Container-based Default all users have the same authorization. I would like to share how to launch the Jenkins Master on a Docker Container. login with docker playground. As you have provision to Add Node from the left side click it. You will get a terminal to use for 4 hours to play with the Docker engine.   To run the Jenkins inside docker container name: Jenkins-master run in detached mode -d Port forwarding from container port 8080 to host 8081 and 50000 to 50001 Allocate disk space to run the Jenkins workspace use -v Docker image from Blue Ocean Let's launch the Jenkins container using below command: docker run --name jenkins-master -u root --rm \ -d -p 8081:8080 -p 50001:50000 \ -v ...