diff --git a/etc/jenkins/build.groovy b/etc/jenkins/build.groovy index e6712f75dcb..57f3ffeedb7 100644 --- a/etc/jenkins/build.groovy +++ b/etc/jenkins/build.groovy @@ -133,6 +133,16 @@ spec: } } } + // 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 00000000000..60f703f7761 --- /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