Allow verify in specific subdirectory
for the cps POC they want to be able to run the verify job on a specific sub directory only.
This allows this capabilty to be used in any verify job but is off by default and turn it on for the cps_poc job
Change-Id: Iafacb7caa201ae073085cc3b8181c6210af19d08
Signed-off-by: afenner <andrew.fenner@est.tech>
diff --git a/jjb/onap/verify-jobs.sh b/jjb/onap/verify-jobs.sh
index edd6622..5cb0b00 100755
--- a/jjb/onap/verify-jobs.sh
+++ b/jjb/onap/verify-jobs.sh
@@ -42,7 +42,16 @@
fi
cp settings.xml /home/jenkins/.m2/settings.xml
cd $WORKSPACE
+
+POMFILE="-f $WORKSPACE/pom.xml"
+set +o nounset
+if [[ -n ${SUBDIRECTORY} ]]; then
+ POMFILE="-f $WORKSPACE/$SUBDIRECTORY/pom.xml"
+ echo "Setting pom.xml to use to $POMFILE"
+fi
+set -o nounset
+
echo "----------------------------------------------------"
echo "Proceeding with unit test"
echo "----------------------------------------------------"
-$MVN clean install -U -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn $LOCAL_MVN_PARAMS
+$MVN clean install -U -B $POMFILE -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn $LOCAL_MVN_PARAMS