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

central discovery site should only contain central discovery plugin (not also the EA one); installFromCentral.sh should support installing from central site+plugin OR earlyaccess site+plugin

    XMLWordPrintable

Description

    Today, installFromCentral.sh assumes two incorrect things:

    a) central URL is always different than the JBT/JBDS site URL [no longer true, since JBT/JBDS & Central content are now co-located]
    b) the plugin to parse for IUs is ONLY the central one, not the EA one [we should parse ONE or BOTH, depending on cmdline flag]

    # get a list of IUs to install from the Central site (based on the discovery.xml -> plugin.jar -> plugin.xml)
    CENTRAL_URL=${INSTALL_PLAN#*,} # includes discovery.xml # echo CENTRAL_URL = $CENTRAL_URL
    
    if [[ $CENTRAL_URL != $INSTALL_PLAN ]]; then 
      # echo $CENTRAL_URL
      wget ${CENTRAL_URL} -q --no-check-certificate -N -O directory.xml
      PLUGINJAR=`cat ${WORKSPACE}/directory.xml | egrep "org.jboss.tools.central.discovery_|com.jboss.jbds.central.discovery_" | sed "s#.\+url=\"\(.\+\).jar\".\+#\1.jar#"`
      # echo "Got $PLUGINJAR"
      CENTRAL_URL=${SITES#*,} # excludes discovery.xml #  echo CENTRAL_URL = $CENTRAL_URL
      wget ${CENTRAL_URL}/${PLUGINJAR} -q --no-check-certificate -N -O plugin.jar
      unzip -oq plugin.jar plugin.xml
    ...
    

    https://github.com/jbosstools/jbosstools-build-ci/blob/4.3.x/util/installFromCentral.sh

    Attachments

      Issue Links

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: