<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kinoba</title>
    <description>The latest articles on DEV Community by Kinoba (@kinoba).</description>
    <link>https://dev.to/kinoba</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F935%2Ff019f3a7-4dfd-4807-b782-9de370d5e6e8.png</url>
      <title>DEV Community: Kinoba</title>
      <link>https://dev.to/kinoba</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kinoba"/>
    <language>en</language>
    <item>
      <title>Dependencies Check with Jenkins</title>
      <dc:creator>Grégoire Willmann</dc:creator>
      <pubDate>Mon, 15 Jul 2019 08:11:18 +0000</pubDate>
      <link>https://dev.to/kinoba/dependencies-check-with-jenkins-5537</link>
      <guid>https://dev.to/kinoba/dependencies-check-with-jenkins-5537</guid>
      <description>&lt;p&gt;The wonderful &lt;a href="https://wiki.jenkins.io/display/JENKINS/OWASP+Dependency-Check+Plugin" rel="noopener noreferrer"&gt;OWASP Dependency-Check Jenkins&lt;/a&gt; plugin has recently published an update introducing breaking changes for my pipelines.&lt;br&gt;
So I have written a quick guide on how to upgrade your pipelines to fix those:&lt;/p&gt;

&lt;p&gt;Original article here: &lt;a href="https://medium.com/@Gr3g0ire/dependencies-check-with-jenkins-4e73c451cb34" rel="noopener noreferrer"&gt;https://medium.com/@Gr3g0ire/dependencies-check-with-jenkins-4e73c451cb34&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After upgrading the plugin, create a new Dependency-Check installation in the Global tools configuration of your Jenkins instance:&lt;br&gt;
new installation of Dependency-Check&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fxkve5tuzl7e7y0fi1lpo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fxkve5tuzl7e7y0fi1lpo.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have a Jenkins job running every day which sole purpose is to update the NVD database.&lt;br&gt;
As it was not a pipeline job we had to reconfigure it from the UI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fzdr5gpy3wsmyvjrc8eac.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fzdr5gpy3wsmyvjrc8eac.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This job runs every day at 4 AM&lt;/p&gt;

&lt;p&gt;Next we had to change all our pipeline script for checking and publishing results of dependencies checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Changed from&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dependencyCheckAnalyzer datadir: ‘/home/jenkins/security/owasp-nvd/’, hintsFile: ‘’, includeCsvReports: false, includeHtmlReports: true, includeJsonReports: true, includeVulnReports: true, isAutoupdateDisabled: true, outdir: ‘build/owasp’, scanpath: ‘’, skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: ‘’, zipExtensions: ‘’
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh(‘mkdir -p build/owasp’)
dependencycheck additionalArguments: ‘ — project [project_name]— scan /home/jenkins/security/owasp-nvd/ — out build/owasp/dependency-check-report.xml — format XML — noupdate’, odcInstallation: ‘Dependency Checker’
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;publishing results&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Changed from&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'build/owasp/dependency-check-report.xml', unHealthy: ''
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dependencyCheckPublisher pattern: 'build/owasp/dependency-check-report.xml'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>jenkins</category>
      <category>automation</category>
      <category>updates</category>
      <category>breakingchanges</category>
    </item>
  </channel>
</rss>
