<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jenkins Testing &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/jenkins-testing/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Sun, 27 Jun 2021 09:59:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>Continuous Integration Testing with Jenkins</title>
		<link>https://www.bestdevops.com/continuous-integration-testing-with-jenkins/</link>
					<comments>https://www.bestdevops.com/continuous-integration-testing-with-jenkins/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Wed, 01 Mar 2017 06:38:27 +0000</pubDate>
				<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[DevOps Tools]]></category>
		<category><![CDATA[CI]]></category>
		<category><![CDATA[CI with Jenkins]]></category>
		<category><![CDATA[Continuous Integration With Jenkins]]></category>
		<category><![CDATA[Jenkin pipeline]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Jenkins Testing]]></category>
		<category><![CDATA[QA Testing]]></category>
		<category><![CDATA[Software Development]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=840</guid>

					<description><![CDATA[In software development and testing fields, Continuous Integration (CI) is an exercise of combining all development work to a shared [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In software development and testing fields, Continuous Integration (CI) is an exercise of combining all development work to a shared main server several times a day.  The goal of CI is to reduce time and effort required for a product launch. The process of continuous integration is achieved with the help of version control, strategies &amp; contracts and special tools.</p>
<p><a href="http://www.scmgalaxy.com/courses/agenda/continous-integration-tools/jenkins-training.html"><em>One of the famous tools used for CI testing is <strong>Jenkins</strong>.</em></a><span id="more-6937"></span></p>
<blockquote><p><strong>“Jenkins is an open source automation tool, which can be used to program all categories of tasks such as building, testing, and deploying software. Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with the Java Run-time Environment installed.”</strong></p></blockquote>
<p>It helps to automate the non-human part of the software development life-cycle.</p>
<p>Jenkin pipeline is a package of plugins used for implementing the CI process in the delivery pipeline. Extensive set of tools are available with pipeline for modelling simple to complex delivery pipelines. It is a server based tool, which runs on Java servlet such as Apache Tomcat. It supports source control management such as AccuRev, CVS, Git, Mercurial, Subversion, RTC, Perforce and Clearcase.</p>
<p>There are a lot of plugins released for Jenkins to extend its use to projects, which are written in various languages besides Java.</p>
<p>Below is the flow diagram to explain how continuous integration testing can be done with Jenkins.</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-7029 aligncenter" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-automation-steps.png" sizes="(max-width: 584px) 100vw, 584px" srcset="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-automation-steps-300x173.png 300w, http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-automation-steps.png 584w" alt="jenkins automation steps" width="584" height="336" /></p>
<h1>Now let’s take a look how to configure and manage Jenkins</h1>
<p class="sh">Step 1</p>
<p>Download Jenkins from the website <a href="https://jenkins.io/" target="_blank" rel="noopener">https://jenkins.io</a></p>
<p class="sh">Step 2</p>
<p>Login to the Jenkins<br />
<img decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-1.jpg" alt="jenkins-open-source-automation-tool-1" width="1201" height="675" /></p>
<p><strong>E-Mail Configuration:</strong></p>
<p class="sh">Step 3</p>
<p>Click on ‘Manage Jenkins’ link<br />
<img decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-2.jpg" alt="jenkins-open-source-automation-tool-2" width="1201" height="675" /></p>
<p class="sh">Step 4</p>
<p>Click on ‘Configure System’ link<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-3.jpg" alt="jenkins-open-source-automation-tool-3" width="1201" height="675" /></p>
<p class="sh">Step 5</p>
<p>Configure the fields given as screenshot<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-4.jpg" alt="jenkins-open-source-automation-tool-4" width="1201" height="675" /></p>
<p class="sh">Step 6</p>
<p>Enter ‘System Admin’ Email Id<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-5.jpg" alt="jenkins-open-source-automation-tool-5" width="1201" height="675" /></p>
<p class="sh">Step 7</p>
<p>Enter the following fields on the ‘Extended Email Notification section –Ref’ screenshot</p>
<p><strong>SMTP Server: </strong>smtp.gmail.com</p>
<p><strong>Default user E-mail suffix: </strong>@gmail.com</p>
<p><strong>Default Recipients:</strong> your123@gmail.com</p>
<p><strong>Reply To List:</strong> noreply@gmail.com</p>
<p><strong>Default Content Type</strong>: $PROJECT_NAME – Build # $BUILD_NUMBER – $BUILD_STATUS!</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-6.jpg" alt="jenkins-open-source-automation-tool-6" width="1201" height="675" /></p>
<p class="sh">Step 8</p>
<p>Select the checkbox option given on the screen shot to Trigger the Email<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-7.jpg" alt="jenkins-open-source-automation-tool-7" width="1201" height="675" /></p>
<p class="sh">Step 9</p>
<p>Enter the fields on the ‘E-mail Notification’ section as given on the screenshot</p>
<p>Select ‘Test Configuration’ checkbox then click on ‘Test Configuration’ button. You will get success message like – “Email was successfully sent” [if you get this message means you have configured successfully] then Click on ‘Save’ button.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-8.jpg" alt="jenkins-open-source-automation-tool-8" width="1201" height="675" /></p>
<h1><strong>Steps to create a new Project in Jenkins and Project Configuration</strong></h1>
<p class="sh">Step 1</p>
<p>Go to Jenkins -&gt; New Item</p>
<p class="sh">Step 2</p>
<p>Enter project name and select ‘Freestyle Project’ then click on ‘OK’ button<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-8.jpg" alt="jenkins-open-source-automation-tool-8" width="1201" height="675" /></p>
<p class="sh">Step 3</p>
<p>Click on tab ‘General’</p>
<p class="sh">Step 4</p>
<p>Set the time on ‘Build Trigger’ Section<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-9.jpg" alt="jenkins-open-source-automation-tool-9" width="1201" height="675" /></p>
<p>Example Time:</p>
<blockquote><p># every fifteen minutes (perhaps at :07, :22, :37, :52)</p>
<p>H/15 * * * *</p>
<p># every ten minutes in the first half of every hour (three times, perhaps at :04, :14, :24)</p>
<p>H(0-29)/10 * * * *</p>
<p># once every two hours at 45 minutes past the hour starting at 9:45 AM and finishing at 3:45 PM every weekday.</p>
<p>45 9-16/2 * * 1-5</p>
<p># once in every two hours slot between 9 AM and 5 PM every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 4:38 PM)</p>
<p>H H(9-16)/2 * * 1-5</p>
<p># once a day on the 1st and 15th of every month except December</p>
<p>H H 1,15 1-11 *</p></blockquote>
<p class="sh">Step 5</p>
<p>Enter the name of your <strong>.bat</strong> file on the ‘Build’ section<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-10.jpg" alt="jenkins-open-source-automation-tool-10" width="1201" height="675" /></p>
<p class="sh">Step 6</p>
<p>Fill the field on the ‘Post-build Actions’ section given as screenshot<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-11.jpg" alt="jenkins-open-source-automation-tool-11" width="1201" height="675" /><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-12.jpg" alt="jenkins-open-source-automation-tool-12" width="1201" height="675" /></p>
<p class="sh">Step 7</p>
<p>Click on ‘Save’ button</p>
<p class="sh">Step 8</p>
<p>Click on your Project then click -&gt; Build Now; you will get the ‘<a href="http://localhost:8080/computer/">Build Executor Status</a>’ as following screenshot.<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-13.jpg" alt="jenkins-open-source-automation-tool-13" width="1201" height="675" /></p>
<p class="sh">Step 9</p>
<p>Once if the build get completed click on the build number then view the console output<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-14.jpg" alt="jenkins-open-source-automation-tool-14" width="1201" height="675" /></p>
<p class="sh">Step 10</p>
<p>The console output will be following screenshot<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-6975" src="http://www.indiumsoft.com/Blog/wp-content/uploads/2017/02/jenkins-open-source-automation-tool-16.jpg" alt="jenkins-open-source-automation-tool-16" width="1201" height="675" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/continuous-integration-testing-with-jenkins/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
