remove TARGET_PLATFORM_CENTRAL_MAX and TARGET_PLATFORM_VERSION_MAX
hardcoding in Jenkins jobs; read from parent pom
-------------------------------------------------------------------------------------------------------------------
Key: JBIDE-26097
URL:
https://issues.jboss.org/browse/JBIDE-26097
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: build
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 4.6.0.AM3
remove TARGET_PLATFORM_CENTRAL_MAX and TARGET_PLATFORM_VERSION_MAX hardcoding in Jenkins
jobs
Instead, read from parent pom like this:
{code}
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/pare...
-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
{code}