Posts

Showing posts with the label #Jenkins

Jenkins Pipeline

Hello World, Since we know, what is Jenkins and how to use it  So  let's talk about its plugin called "Jenkins Pipeline". If you missed the blog post about the Jenkins then you can access and read from here . What is it? Official definition: Jenkins Pipeline (or simply "Pipeline" with a capital "P") is a suite of plugins which supports implementing and integrating  continuous delivery pipelines  into Jenkins. Explanation:   So from the above official definition, we can conclude that Jenkins pipeline helps us to integrate multiple jobs into one Jenkins job and since all job are interconnected(which also known as  Stage ) so we can get the job outcome for those, based on that we can take further decision. So overall, It helps us to track the multiple stages. -------------------------------------------------------------- Where to and Who can use? Area of use:   Since Jenkins is a DevOps tool, which can automate the repetitive...

Jenkins Job Build for Maven and Cucumber

Image
Hello World, Moto:  In Jenkins, we all might be having a question which is,  "How to customize the Jenkins job build with the parameters" In this blog, we will see the build strategy configuration for the Jenkins job for Maven and cucumber automation project. Platform: Jenkins 2.121.3 Plugin(s):   Active Choices Parameter , Active Choices Reactive Parameter Solution: Step 1: Create 3 variables (1- Active Choices Parameter, 2- Active Choices Reactive Parameter) Step 2: Let's say those variables are the 'BuildStrategy'(Active Choice Parameter), 'Options' (Active Choice Reactive Parameter) , and 'Execute' (Active Choice Reactive Parameter) Step 3: Inject the groovy script for all variables accordingly, as shown below For 'BuildStrategy' inject this return ["Build Complete Suite:selected", "Build only selected features", "Build with custom provided tags"] For 'Options' inject...

Jenkins CRON Job Scheduling

Image
Hello World,  In this article, you will learn the Jenkins CRON Job scheduling. Jenkins provides the scheduling to trigger your job automatically at/on the configured time schedule. Description of Values (5 stars) Jenkins scheduling supports 5 values, let's know about those (Most left) * * * * * (Most Right) or (in another way these stars can also be represented as) MINUTE HOURS DATES MONTHS DAYS I am starting from the most left. 1st *: This is for the Minutes. and it has the range of (0-59). It also supports the division and the outcome will be treated as modulo division.  For Example, if you have written H/3 at the 1st * place then every minute value, which is completely divisible by 3 your job will be triggered. 2nd *: This is the hours, and it has the range of (0-23). It also supports the division. 3rd *: This is the Dates(Month days), and it has the range of (1-31). 4th *: This is the Month, and it has the range of (1-12). 5th *: This is ...