See INTDIST-107
Change-Id: I3f12cc31d90df3ef48d30b5b2bf2da2673b98c26
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
# Depends on variables created and published from the integration-set-variables script
# Depends on variables created and published from the integration-set-variables script
python distcompare.py -r "ssh://jenkins-$SILO@git.opendaylight.org:29418" | tee /tmp/dist_diff.txt
echo -e "Patch differences listed are in comparison to:\n\t$ACTUAL_BUNDLE_URL\n\n" > "$WORKSPACE"/archives/distribution_differences.txt
sed -ne '/Patch differences/,$ p' /tmp/dist_diff.txt >> "$WORKSPACE"/archives/distribution_differences.txt
python distcompare.py -r "ssh://jenkins-$SILO@git.opendaylight.org:29418" | tee /tmp/dist_diff.txt
echo -e "Patch differences listed are in comparison to:\n\t$ACTUAL_BUNDLE_URL\n\n" > "$WORKSPACE"/archives/distribution_differences.txt
sed -ne '/Patch differences/,$ p' /tmp/dist_diff.txt >> "$WORKSPACE"/archives/distribution_differences.txt
+
+# Check OpenDaylight YANG modules:
+echo "Installing pyang"
+pip install --user pyang
+if [ -f /tmp/distro_new/bin/extract_modules.sh ]; then
+ echo "Extracting YANG modules"
+ /tmp/distro_new/bin/extract_modules.sh
+ echo "Checking YANG modules"
+ /tmp/distro_new/bin/check_modules.sh
+ mv /tmp/distro_new/opendaylight-models "$WORKSPACE"/archives
+fi
+