<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Jenkins Build Result feedback in Continuous Integration</title>
    <link>https://ni.lithium.com/t5/Continuous-Integration/Jenkins-Build-Result-feedback/m-p/4117872#M367</link>
    <description>&lt;P&gt;#!/usr/bin/env groovy&lt;BR /&gt;import java.*&lt;BR /&gt;import java.lang.*&lt;BR /&gt;import hudson.*&lt;BR /&gt;import hudson.model.*&lt;BR /&gt;import jenkins.model.Jenkins&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;stage('\u277A CheckLog Build') {&lt;BR /&gt;if (manager.logContains('.*ExecuteBuildSpec operation succeeded.*')) {&lt;BR /&gt;stageResult= 'SUCCESS'&lt;BR /&gt;currentBuild.result = 'SUCCESS'&lt;BR /&gt;echo "\u2705 Project Build PASS"&lt;BR /&gt;}else{&lt;BR /&gt;echo "\u274C Project Build Failed:"&lt;BR /&gt;error("Build failed because of this and that...") &lt;BR /&gt;stageResult= 'NOT_BUILT'&lt;BR /&gt;currentBuild.result = 'NOT_BUILT'&lt;BR /&gt;return PipelineResult.ABORTED&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 09:46:34 GMT</pubDate>
    <dc:creator>bodo_online</dc:creator>
    <dc:date>2021-02-02T09:46:34Z</dc:date>
    <item>
      <title>Jenkins Build Result feedback</title>
      <link>https://ni.lithium.com/t5/Continuous-Integration/Jenkins-Build-Result-feedback/m-p/4117608#M365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have setup a Jenkins with GITlab Continues Integration setup Based on the NI Knowledge Article:&lt;BR /&gt;LabVIEW Continuous Integration With Jenkins/GitHub - National Instruments (ni.com)&lt;BR /&gt;The Project itself is working correctly. &lt;BR /&gt;If I edit a VI in a way that it is broken. I get the error description in the „Consele Output“ but in the „Stage View“ I didn’t see that the build is failed.&lt;BR /&gt;lvPipeline.groovy:&lt;BR /&gt;stage('Build project') {&lt;BR /&gt;try {&lt;BR /&gt;timeout(time: 60, unit: 'MINUTES') {&lt;BR /&gt;lvBuild(lvProjectPath, "My Computer", lvBuildSpecName, lvVersion, lvBitness)&lt;BR /&gt;}&lt;BR /&gt;} catch (err) {&lt;BR /&gt;stageResult= 'NOT_BUILT'&lt;BR /&gt;currentBuild.result = 'NOT_BUILT'&lt;BR /&gt;echo "Project Build Failed: ${err}"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try different variants without any result. My guess catch(err) never give a result. &lt;BR /&gt;Perhaps somebody has a solution for this Problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 14:30:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Continuous-Integration/Jenkins-Build-Result-feedback/m-p/4117608#M365</guid>
      <dc:creator>bodo_online</dc:creator>
      <dc:date>2021-02-01T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Jenkins Build Result feedback</title>
      <link>https://ni.lithium.com/t5/Continuous-Integration/Jenkins-Build-Result-feedback/m-p/4117872#M367</link>
      <description>&lt;P&gt;#!/usr/bin/env groovy&lt;BR /&gt;import java.*&lt;BR /&gt;import java.lang.*&lt;BR /&gt;import hudson.*&lt;BR /&gt;import hudson.model.*&lt;BR /&gt;import jenkins.model.Jenkins&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;stage('\u277A CheckLog Build') {&lt;BR /&gt;if (manager.logContains('.*ExecuteBuildSpec operation succeeded.*')) {&lt;BR /&gt;stageResult= 'SUCCESS'&lt;BR /&gt;currentBuild.result = 'SUCCESS'&lt;BR /&gt;echo "\u2705 Project Build PASS"&lt;BR /&gt;}else{&lt;BR /&gt;echo "\u274C Project Build Failed:"&lt;BR /&gt;error("Build failed because of this and that...") &lt;BR /&gt;stageResult= 'NOT_BUILT'&lt;BR /&gt;currentBuild.result = 'NOT_BUILT'&lt;BR /&gt;return PipelineResult.ABORTED&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 09:46:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Continuous-Integration/Jenkins-Build-Result-feedback/m-p/4117872#M367</guid>
      <dc:creator>bodo_online</dc:creator>
      <dc:date>2021-02-02T09:46:34Z</dc:date>
    </item>
  </channel>
</rss>

