<?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>How to attach jenkins build log Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/how-to-attach-jenkins-build-log/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/how-to-attach-jenkins-build-log/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:50:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to attach the jenkins build log as part of the email body?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 03 Oct 2015 12:26:05 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Attach]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Email body]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[How to attach jenkins build log]]></category>
		<category><![CDATA[Jenkins build log]]></category>
		<category><![CDATA[Jenkins build log in email body]]></category>
		<category><![CDATA[Log]]></category>
		<category><![CDATA[Part]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ways]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/10/03/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body-2/</guid>

					<description><![CDATA[<p>Way 1 &#8211;  Put following lines as part of Default Content text box ${BUILD_LOG, maxLines=9999, escapeHtml=false} this works for free [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body-2/">How to attach the jenkins build log as part of the email body?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3333 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/jenkins-build-log-as-part-o-1.png" alt="jenkins-build-log-as-part-of-the-email-body" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/jenkins-build-log-as-part-o-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/jenkins-build-log-as-part-o-1-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><strong>Way 1 &#8211; </strong></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">Put following lines as part of Default Content text box</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG, maxLines=9999, escapeHtml=false}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">this works for free style projects</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><strong>Way 2 &#8211; If you want send only specific line using regex</strong></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG_REGEX, regex=&#8221;\\b(Buildfile|BUILD)\\<wbr />b&#8221;, linesAfter=1}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG_REGEX, regex=&#8221;^.*?BUILD FAILED.*?$&#8221;, linesBefore=0, linesAfter=10, maxMatches=5, showTruncatedLines=false, escapeHtml=true}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG_REGEX, regex=&#8221;\\b(FC0)\\b&#8221;, linesAfter=1}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG_REGEX, regex=&#8221;^.*?BUILD FAILED.*?$&#8221;, linesBefore=0, linesAfter=10, maxMatches=5, showTruncatedLines=false, escapeHtml=true}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG_REGEX, regex=&#8221;^.*?FC0.*?$&#8221;, maxMatches=95, showTruncatedLines=false, escapeHtml=false, matchedLineHtmlStyle=true}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">This will show exactly which is expected lines as part of the regEx.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><strong>List of other variables as part of email body</strong></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${PROJECT_URL}/ws/</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_URL}/artifact/</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">${BUILD_LOG, maxLines=1000}</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">More ref</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">Content Token Reference</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">In string arguments, escape &#8220;, \, and line terminators (\n or \r\n) with a \, e.g. arg1=&#8221;\&#8221;quoted\&#8221;&#8221;; arg2=&#8221;c:\\path&#8221;; and arg3=&#8221;one\ntwo&#8221;. The brackets may be omitted if there are no arguments.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">New Lines &#8211; Use &lt;br&gt; or &#8220;\&#8221;</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><strong>More Info </strong></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><a style="color: #1155cc;" href="http://wiki.hudson-ci.org/display/HUDSON/Email-ext+plugin" target="_blank" rel="noopener">http://wiki.hudson-ci.org/<wbr />display/HUDSON/Email-ext+<wbr />plugin</a></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><a style="color: #1155cc;" href="http://stackoverflow.com/questions/9439450/how-will-i-filter-out-only-errors-in-jenkins-email-ext-build-log-regex" target="_blank" rel="noopener">http://stackoverflow.com/<wbr />questions/9439450/how-will-i-<wbr />filter-out-only-errors-in-<wbr />jenkins-email-ext-build-log-<wbr />regex</a></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><a style="color: #1155cc;" href="http://champasoft.blogspot.nl/2012/11/jenkins-pattern-for-e-mailing-log.html" target="_blank" rel="noopener">http://champasoft.blogspot.nl/<wbr />2012/11/jenkins-pattern-for-e-<wbr />mailing-log.html</a></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;"><a style="color: #1155cc;" href="https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin" target="_blank" rel="noopener">https://wiki.jenkins-ci.org/<wbr />display/JENKINS/Email-ext+<wbr />plugin</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body-2/">How to attach the jenkins build log as part of the email body?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to attach the jenkins build log as part of the email body?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 11 Sep 2015 16:29:12 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Attach]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Email body]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[How to attach jenkins build log]]></category>
		<category><![CDATA[Jenkins build log]]></category>
		<category><![CDATA[Jenkins build log in email body]]></category>
		<category><![CDATA[Log]]></category>
		<category><![CDATA[Part]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ways]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/09/11/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/</guid>

					<description><![CDATA[<p>Way 1 &#8211;  Put following lines as part of Default Content text box ${BUILD_LOG, maxLines=9999, escapeHtml=false} this works for free [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/">How to attach the jenkins build log as part of the email body?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-3363 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/jenkins-build-log-as-part-o.png" alt="jenkins-build-log-as-part-of-the-email-body" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/jenkins-build-log-as-part-o.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/jenkins-build-log-as-part-o-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Way 1 &#8211; </strong></p>
<p>Put following lines as part of Default Content text box</p>
<p>${BUILD_LOG, maxLines=9999, escapeHtml=false}</p>
<p>this works for free style projects</p>
<p><strong>Way 2 &#8211; If you want send only specific line using regex</strong></p>
<p>${BUILD_LOG_REGEX, regex=&#8221;\\b(Buildfile|BUILD)\\b&#8221;, linesAfter=1}</p>
<p>${BUILD_LOG_REGEX, regex=&#8221;^.*?BUILD FAILED.*?$&#8221;, linesBefore=0, linesAfter=10, maxMatches=5, showTruncatedLines=false, escapeHtml=true}</p>
<p>${BUILD_LOG_REGEX, regex=&#8221;\\b(FC0)\\b&#8221;, linesAfter=1}</p>
<p>${BUILD_LOG_REGEX, regex=&#8221;^.*?BUILD FAILED.*?$&#8221;, linesBefore=0, linesAfter=10, maxMatches=5, showTruncatedLines=false, escapeHtml=true}</p>
<p>${BUILD_LOG_REGEX, regex=&#8221;^.*?FC0.*?$&#8221;, maxMatches=95, showTruncatedLines=false, escapeHtml=false, matchedLineHtmlStyle=true}</p>
<p>This will show exactly which is expected lines as part of the regEx.</p>
<p>More Info</p>
<p><a href="http://wiki.hudson-ci.org/display/HUDSON/Email-ext+plugin" target="_blank" rel="noopener">http://wiki.hudson-ci.org/display/HUDSON/Email-ext+plugin</a></p>
<p><a href="http://stackoverflow.com/questions/9439450/how-will-i-filter-out-only-errors-in-jenkins-email-ext-build-log-regex" target="_blank" rel="noopener">http://stackoverflow.com/questions/9439450/how-will-i-filter-out-only-errors-in-jenkins-email-ext-build-log-regex</a></p>
<p><a href="http://champasoft.blogspot.nl/2012/11/jenkins-pattern-for-e-mailing-log.html" target="_blank" rel="noopener">http://champasoft.blogspot.nl/2012/11/jenkins-pattern-for-e-mailing-log.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/">How to attach the jenkins build log as part of the email body?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
