X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2FbuildHoneynode.sh;h=5bffcea9bd4f34abe09cf1d47179a92a8614874d;hb=34cbca4ad81fbd29e833197f0e4b09128daa8b95;hp=6b8827c7e7393937b1372466bc094b21dac803aa;hpb=3e6ab29693d1cce9c1d035ab4882b43e51f33f9d;p=transportpce.git diff --git a/tests/buildHoneynode.sh b/tests/buildHoneynode.sh index 6b8827c7e..5bffcea9b 100755 --- a/tests/buildHoneynode.sh +++ b/tests/buildHoneynode.sh @@ -1,8 +1,14 @@ #!/bin/bash +ORDMVERSION=${1:-2.1} + set -e -(cd honeynode && mvn clean install -DskipTests -s fd_io_honeycomb_settings.xml) -chmod +x ./honeynode/honeynode-distribution/target/honeynode-distribution-1.18.01-hc/honeynode-distribution-1.18.01/honeycomb-tpce +rm -rf honeynode/$ORDMVERSION/honeynode-plugin-impl/src/main/resources/honeycomb-minimal-resources/config/yang +mkdir -p honeynode/$ORDMVERSION/honeynode-plugin-impl/src/main/resources/honeycomb-minimal-resources/config/yang +#cp honeynode/$ORDMVERSION/honeynode-plugin-api/src/main/yang/* honeynode/$ORDMVERSION/honeynode-plugin-impl/src/main/resources/honeycomb-minimal-resources/config/yang +find honeynode/$ORDMVERSION/honeynode-plugin-api/src/main/yang/ -name "*.yang" -type f -exec cp {} ./honeynode/$ORDMVERSION/honeynode-plugin-impl/src/main/resources/honeycomb-minimal-resources/config/yang \; +(cd honeynode/$ORDMVERSION/ && mvn clean install -DskipTests -Dcheckstyle.skip -s ../fd_io_honeycomb_settings.xml) +chmod +x ./honeynode/$ORDMVERSION/honeynode-distribution/target/honeynode-distribution-1.18.01-hc/honeynode-distribution-1.18.01/honeycomb-tpce exit $?