Skip to content

Commit

Permalink
[master] Jenkins build - Spotbus analyze step (#1277)
Browse files Browse the repository at this point in the history
Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed Sep 4, 2021
1 parent 0105b78 commit ab7db7c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions etc/jenkins/build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ spec:
}
}
}
// Spotbugs analyze
stage('Spotbugs analyze') {
steps {
container('el-build') {
sh """
etc/jenkins/spotbugs.sh
"""
}
}
}
// LRG tests
stage('Tests') {
steps {
Expand Down
16 changes: 16 additions & 0 deletions etc/jenkins/spotbugs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ab7db7c

Please sign in to comment.