[jbosstools-issues] [JBoss JIRA] (JBIDE-26097) remove TARGET_PLATFORM_CENTRAL_MAX and TARGET_PLATFORM_VERSION_MAX hardcoding in Jenkins jobs; read from parent pom
Nick Boldt (JIRA)
issues at jboss.org
Wed Jun 13 19:47:00 EDT 2018
[ https://issues.jboss.org/browse/JBIDE-26097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591201#comment-13591201 ]
Nick Boldt commented on JBIDE-26097:
------------------------------------
Jobs updated:
https://github.com/jbdevstudio/jbdevstudio-ci/commit/9a1c4d659cfcf0bdc9fe0f4b785d4bbdfed86afc
> 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/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
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list