how to create jenkins

 Jenkins is
1) Open source automation server
2) Helps to automate the non-human part of
the software development process
3) Allows continuous integration
5) In my company Port is 8081 localhost
 To run my project in Jenkins
1) I need  to Login Jenkins account
2) I need to Create freestyle project
3) after that Install plugins -cucumber report and git
4) Under source code management I choose git and past git url
5) I Build trigger and I choose to build periodically
6) Invoke top-level maven
1. Maven version; MAVEN_HOME
2. Goals; clean verify -
Drunner=smoke_runner.xml
7) Under post-build actions
1. Choose cucumber reports
2. Choose editable email notify
8) Editable email notification
1. Attach build log; choose build log
2. Click advanced settings
9) Failure-Any
1. Click advanced
2. Recipient list - email address who will
receive the report. Add comma if multiple
3. Click add trigger - like failure always
4. Attach build log; select attach build log
5. Save
10) Final Step
1. Click build now and test will run and
gives your cucumber report

4.33
3

                                    How did you create a Job in jenkins? 
In my company devops team maintains 
the jenkins and as a tester my jenkins
account user do not have enough privilege 
to create new jobs. I provide them server
specifications which means minimum capacity
of the jenkins server (maven, java 8, browser
types(chrome, firefox or what you need), OS(Mac-Windows), etc).
I can only run the jobs and see the results. 
To create my smoke tests on jenkins I created 
a ticket in jira for the devops team. 
But also know how to create and configure 
jenkins jobs myself. 
I have done it in my previous projects. 

How you configure a job(build) in Jenkins?
As a test engineer I only configured 
my smoke tests on jenkins. 
how we configure our smoke test also depend
s on what tools we have in our framework.
I have a cucumber + junit + maven framework. 
So this is how that job is configured:

1. Source Code Management
Here we specify where to get the code from.
we put the link of our GitHub repo 
and also enter the credentials

2. Build Triggers
We specify how often we run those tests.
we choose Build periodically because we
want to run in certain schedule. 
in my project, we run smoke tests every morning.
so in the build trigger we entered daily option:
H 6 * * * --> every day around 6 am.
Jenkins used a cron expression, and the different fields are:

  H * * * *   ==> Build every hour at any minute (6.12 am, 8.38pm)
  0 * * * *   ==> Build every hour at exactly on the hour (6.00 am, 8.00pm)
  0 8 * * *   ==> Build every day exactly 8.00 am
  H/5 * * * * ==> Build every 5 minutes
  H 6 * * 1-5 ==> Build around 6 am from first day of the week (Monday) to 5th day (Friday)
  H 1 * 6,20 * * ==> Build on 6th and 20th day of the month around 1 am for regression

3. Build
Here we enter the details of the actual Run.
since my project is based on maven, 
I choose option: Invoke top-level maven targets
then I choose which maven to run from the
version dropdown. in the next field, 
I enter the maven goal: verify. in this field
we do not need to enter the word mvn.
I can also mention here which tag or which
runner class I want to run. So the command will be:
	verify -Dcucumber.options="--tags @smoke"       ==> for smoke test
	verify -Dcucumber.options="--tags @regression"  ==> for regression test

4. Add Post-build Actions
In the post build actions, we configure
what we want to do after build. after
each test we generate report and email
a. report
We generate report using Cucumber reports plugin.
I select Cucumber reports plugin from the
Post-build Actions to generate reports. 
b. Email
Using the email plugin we can send email
after every build. I select Editable Email
Notification option from the Post-build
Actions to send emails.

4.33 (3 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to add jenkins pipeline as code Why do you use Jenkins in your project. how to write jenkins for .net jenkins development ow to create a jenkins account ow to create a jenkins file jenkins example which company create jenkins how to how to create jenkins file locally jenkins command line ways to give jenkins configurations what is the use of jenkins jenkins steps example how to create a jenkins account jenkins integration do you need java to run jenkins? jenkins software tutorial jenkins create a jenkinsfile jenkins using make jenkins make does jenkins really require java jenkins programming language why use jenkins file when did jenkins come out command to build jenkins what language is jenkins script jenkins command to start jenkins command What is the use of a Jenkins file jenkins jenkins dok how to manage jenkins create a jenkins server is jenkins popular how setup jenkins add jenkins compiling from jenkins jenkins steps script jenkins file ? how to use? make your own jenkins server what is a jenkins file how to make a build with jenkins jenkins script example do I need to use jenkins jenkins jenkinsfile tutorial jenkins jenkinsfile? jenkins making builds getting started with jenkins What is Jenkins job? can i use jenkins for .net jenkins script library how to create jenkins build jenkins used for how to write jenkins file what are jenkins written in jenkins examples command for build project in jenkins how to create build from jenkins ui how to create build from jenkins create your own jenkins how to write jenkins library jenkins build a project in command line jenkins create a Sample Step jenkins create sample step guide to writing jenkins library build project in Jenkins jenkins when jenkins how it works useful jenkins How to Jenkins build project manually How can you make Jenkins build the project manually How can you make Jenkins build the project automatically why do we need jenkins creating a jenkins file in project how to work with jenkins in windows making a jenkins project how to build locally with jenkins about Jenkins why jenkins jenkins full tutorial why is jenkins used create a jenkins account To implement any Java Program using Jenkins create jenkins build jenkins how to jenkins basic tutorial jenkins create build step how to jenkins from command line what is possible to do with jenkins How to work with jenkins how to build a project in jenkins how to create a new jenkins job how to start a jenkins server jenkins create a pipeline why jenkins is used what does jenkins do? how to create jenkinsfile jenkins build project what is use of jenkins how to add a new Jenkins job jenkins how to get Jenkinsfile jenkins in java where to add jenkins script jenkins jenkinsfile what is build in jenkins how to start jenkins jenkins demo jenkins basics using jenkins how to create jenkins job how to jenkins load $ Jenkins (software) jenkins is used for how to use jenkins files jenkins on command line how to do jenkins build how to create a jenkins pipeline how to implement jenkins explain jenkins what can i use jenkins for how to build a jenkins job jenkins only work with java ? create jenkins project what does jenkins file do how to to run jenkins i why jenkins file what are jenkins build on what is jenkins programming jenkins as code build jenkins create jenkins pipeline what is jenkinsfile jenkins create a jenkins pipeline how does jenkins work jenkins pipeline .net example jenkins python api what is jenkins used for how jenkins works what does jenkins do JHow to start jenkins how to start jenkins how to build a project on jenkins jenkins equivalent what can jenkins do setup jenkins in your project what is jenkins why it is used use of jenkins should i use jenkins simple jenkins file jenkins jenkinsfile howto how does jenkins pipeline work jenkins scripting tutorial why do i need jenkins jenkins basic code where is our jenkins running jenkins how will work how to setup a jenkins server can you use jenkins with java 15 how to use jenkins how to write a jenkins job create jenkins file how to setup jenkins jenkins job creation jenkins create project start jenkins how to make a jenkins server how to create a freestyle project in jenkins freestyle project jenkinsfile tutorial jenkins how to create a job jenkins installation how to build a dummy jenkins build setting up jenkins job jenkins create a new job jenkin jobs how do you use jenkins how do you configure job in jenkins job build jenkins jenkins start a jobs creating jenkins pipeline how to create a jenkins job jenkins freestyle project script path how to build jenkins job create org using jenkins What are ways to create a new Freestyle job in Jenkins create project in jenkins how to create and run jenkins job how to create jenkins
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source