Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26097

remove TARGET_PLATFORM_CENTRAL_MAX and TARGET_PLATFORM_VERSION_MAX hardcoding in Jenkins jobs; read from parent pom

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.6.0.AM3
    • None
    • build
    • None
    • devex #150 June 2018
    • 2

    Description

      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
      

      Attachments

        Activity

          People

            nickboldt Nick Boldt
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: