Fix distribution patch differences script 75/79775/1
authorLuis Gomez <ecelgp@gmail.com>
Mon, 21 Jan 2019 01:20:47 +0000 (17:20 -0800)
committerLuis Gomez <ecelgp@gmail.com>
Mon, 21 Jan 2019 01:20:47 +0000 (17:20 -0800)
Change-Id: I44d24d66692bf51352bea63e9672fdb7b9b2e7c3
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
jjb/integration/integration-compare-distributions.sh

index eb2df1c06e9e466483eb180ea91ea6655b15f91f..87ad52100927df5cef44ad2c5e9b2f6e0283d0eb 100644 (file)
@@ -47,9 +47,8 @@ NEW_DISTRO="$(find $WORKSPACE -name "${KARAF_ARTIFACT}*.zip")"
 NEW_DISTRO_BASENAME="$(basename "$NEW_DISTRO")"
 cp $NEW_DISTRO /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
+unzip $NEW_DISTRO_BASENAME
+mv $BUNDLEFOLDER distro_new
 
 git clone https://git.opendaylight.org/gerrit/p/integration/test.git
 cd test/tools/distchanges || exit