[master] Jenkins build - Spotbus analyze step (#1277)

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
diff --git a/etc/jenkins/build.groovy b/etc/jenkins/build.groovy
index e6712f7..57f3ffe 100644
--- a/etc/jenkins/build.groovy
+++ b/etc/jenkins/build.groovy
@@ -133,6 +133,16 @@
                 }
             }
         }
+        // Spotbugs analyze
+        stage('Spotbugs analyze') {
+            steps {
+                container('el-build') {
+                    sh """
+                            etc/jenkins/spotbugs.sh
+                        """
+                }
+            }
+        }
         // LRG tests
         stage('Tests') {
             steps {
diff --git a/etc/jenkins/spotbugs.sh b/etc/jenkins/spotbugs.sh
new file mode 100755
index 0000000..60f703f
--- /dev/null
+++ b/etc/jenkins/spotbugs.sh
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+#
+# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v. 1.0, which is available at
+# http://www.eclipse.org/org/documents/edl-v10.php.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
+#
+# Arguments:
+#  N/A
+
+echo '-[ EclipseLink Spotbugs analyze ]-----------------------------------------------------------'
+mvn -B -V com.github.spotbugs:spotbugs-maven-plugin:spotbugs