From: Dileep Ranganathan Date: Mon, 30 Jul 2018 14:04:53 +0000 (-0700) Subject: Missing xmllint package for version scraping X-Git-Tag: v1.2.0~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=4b3243c48fb977e7a4c4dd1d420ba45e47803e7d;p=optf%2Fhas.git Missing xmllint package for version scraping Installed missing xmllint package for version scraping Change-Id: Ib83221e38e0987539bade32b1b83d33cf97dbc5d Issue-ID: OPTFRA-301 Signed-off-by: Dileep Ranganathan --- diff --git a/build-dockers.sh b/build-dockers.sh index f2b3561..91a2e09 100755 --- a/build-dockers.sh +++ b/build-dockers.sh @@ -33,6 +33,7 @@ function log_ts() { # Log message with timestamp function get_artifact_version() { log_ts Get Maven Artifact version from pom.xml + apt-get install libxml2-utils MVN_ARTIFACT_VERSION=`echo -e "setns x=http://maven.apache.org/POM/4.0.0 \n xpath /x:project/x:version/text() "| xmllint --shell conductor/pom.xml | grep content | sed 's/.*content=//'` log_ts Maven artifact version for HAS is $MVN_ARTIFACT_VERSION if [[ "$MVN_ARTIFACT_VERSION" =~ SNAPSHOT ]]; then