Fixed jfrog file handling (#1132)

* Fix artifactory file handling.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/1265/head
Jerome Luckenbach 2020-01-04 16:25:54 +01:00 committed by GitHub
parent e80496ff1e
commit 90098edab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -64,9 +64,10 @@ echo_process "Updating submodules of the 'openhab-bundles' repo... "
git -C "$resourcefolder/openhab-bundles" submodule update --recursive --remote --init
echo_process "Fetching feature.xml file from the snapshot repository..."
wget -r -l 1 -npdH -A '*.xml' -P "$resourcefolder/jfrog-files" "https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/2.5.1-SNAPSHOT/"
# Copy the lates feature file into the finally used feature.xml
cp `ls .external-resources/jfrog-files/openhab-addons-2.5.0-*-features.xml | sort | tail -1` .external-resources/jfrog-files/feature.xml
# Getting all possibly relevant xml files
wget -r -l 2 -npdH -A '*2.5.*.xml' -P "$resourcefolder/jfrog-files" "https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/"
# Copy the latest feature file into the finally used feature.xml
cp `ls .external-resources/jfrog-files/openhab-addons-2.5.*-*-features.xml | sort | tail -1` .external-resources/jfrog-files/feature.xml
echo_process "Running Maven Clean Plugin... "
mvn clean