Handle path exclusions
This commit is contained in:
parent
7aa4e9299e
commit
d75fd3ca51
1 changed files with 14 additions and 12 deletions
|
|
@ -89,18 +89,20 @@ pipeline {
|
|||
if (EXCLUDE_PATHS) {
|
||||
EXCLUDE_PARAM = """--exclude "${EXCLUDE_PATHS}" """
|
||||
}
|
||||
if (isUnix()) {
|
||||
sh """#!/bin/bash
|
||||
set -e
|
||||
|
||||
export PMD_JAVA_OPTS=-Xmx65536m
|
||||
"${PPD}/run.sh" cpd --minimum-tokens 100 --files "${SRC}" --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml
|
||||
"""
|
||||
} else {
|
||||
bat """
|
||||
set PMD_JAVA_OPTS=-Xmx2048m
|
||||
"${PPD}/cpd.bat" --minimum-tokens 100 --files "${SRC}" --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml
|
||||
"""
|
||||
dir(SRC) {
|
||||
if (isUnix()) {
|
||||
sh """#!/bin/bash
|
||||
set -e
|
||||
|
||||
export PMD_JAVA_OPTS=-Xmx65536m
|
||||
"${PPD}/run.sh" cpd --minimum-tokens 100 --files . --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml
|
||||
"""
|
||||
} else {
|
||||
bat """
|
||||
set PMD_JAVA_OPTS=-Xmx2048m
|
||||
"${PPD}/cpd.bat" --minimum-tokens 100 --files . --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
recordIssues(tools: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue