remove TARGET_PLATFORM_CENTRAL_MAX and TARGET_PLATFORM_VERSION_MAX hardcoding in Jenkins jobs
Instead, read from parent pom like this:
function getVar() { file=$1 var=$2 getVar_return=$(grep "<${var}>" $file | sed -e "s#.*<${var}>\(.\+\)</${var}>.*#\1#") } wget https://raw.githubusercontent.com/jbosstools/jbosstools-build/master/parent/pom.xml -O parent-pom.xml getVar pom.xml TARGET_PLATFORM_VERSION_MAX; TARGET_PLATFORM_VERSION_MAX=$getVar_return getVar pom.xml TARGET_PLATFORM_CENTRAL_MAX; TARGET_PLATFORM_CENTRAL_MAX=$getVar_return rm -f parent-pom.xml