X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Finclude-raw-integration-compare-distributions.sh;h=a7b3827eca45d9ab885ec38e73b80ac4713d3500;hb=2560c7522b16c32b6057426d3b794452e0cccd1a;hp=af4d2e8826673e7f014791c95f7b8f679e8bcc5e;hpb=564ea6891db06cb85c10a008ea240056ce2610b0;p=releng%2Fbuilder.git diff --git a/jjb/integration/include-raw-integration-compare-distributions.sh b/jjb/integration/include-raw-integration-compare-distributions.sh index af4d2e882..a7b3827ec 100644 --- a/jjb/integration/include-raw-integration-compare-distributions.sh +++ b/jjb/integration/include-raw-integration-compare-distributions.sh @@ -38,16 +38,16 @@ mv $BUNDLEFOLDER /tmp/distro_old rm $BUNDLE echo "Extracting the distribution just created by this job..." -NEW_DISTRO="$(find $WORKSPACE -name ${KARAF_ARTIFACT}*.zip)" +NEW_DISTRO="$(find $WORKSPACE -name "${KARAF_ARTIFACT}*.zip")" NEW_DISTRO_BASENAME="$(basename "$NEW_DISTRO")" cp $NEW_DISTRO /tmp/ -cd /tmp/ +cd /tmp/ || exit # get the name of the folder which will be extracted to EXTRACTED_FOLDER=$(unzip $NEW_DISTRO_BASENAME | grep 'creating:' | grep -v '/.' | cut -d' ' -f5-) mv $EXTRACTED_FOLDER distro_new git clone https://git.opendaylight.org/gerrit/p/integration/test.git -cd test/tools/distchanges +cd test/tools/distchanges || exit mkdir -p $WORKSPACE/archives # Full output of compare tool will be in temp file /tmp/dist_diff.txt