Handle path exclusions

This commit is contained in:
Dan Hawkins 2020-10-04 12:05:45 +01:00
commit 29cfbbf9d6

View file

@ -1,13 +1,10 @@
pipeline { pipeline {
agent { label "${AGENT_LABEL}" } agent { label AGENT_LABEL }
stages { stages {
stage('Initial setup') { stage('Initial setup') {
steps { steps {
script { script {
meta = load("${WORKSPACE}/autobuild/Common_scripts/autobuilder.groovy").startnonbuild(this) meta = load("${WORKSPACE}/autobuild/Common_scripts/autobuilder.groovy").startnonbuild(this)
sh """#!/bin/bash
env
"""
} }
} }
} }
@ -103,7 +100,6 @@ pipeline {
set -ev set -ev
export PMD_JAVA_OPTS=-Xmx65536m export PMD_JAVA_OPTS=-Xmx65536m
echo "${PPD}/run.sh" cpd --minimum-tokens 100 --files "${SRC}" --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml
"${PPD}/run.sh" cpd --minimum-tokens 100 --files "${SRC}" --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml "${PPD}/run.sh" cpd --minimum-tokens 100 --files "${SRC}" --language cpp --format xml ${EXCLUDE_PARAM} --failOnViolation false > cpd.xml
""" """
} else { } else {