[
https://issues.jboss.org/browse/JBIDE-25137?page=com.atlassian.jira.plugi...
]
Nick Boldt commented on JBIDE-25137:
------------------------------------
File pushed here:
https://raw.githubusercontent.com/jbosstools/jbosstools-build-ci/master/u...
Script to fetch and include it in env vars in Jenkins:
{code}
+ <hudson.tasks.Shell>
+ <command># fetch eclipse tarball from jbosstools-jenkins.properties
+curl -s -S -k
https://raw.githubusercontent.com/jbosstools/jbosstools-build-ci/master/u...
> jbosstools-jenkins.properties
+</command>
+ </hudson.tasks.Shell>
+ <EnvInjectBuilder plugin="envinject(a)1.93.1">
+ <info>
+
<propertiesFilePath>jbosstools-jenkins.properties</propertiesFilePath>
+ </info>
+ </EnvInjectBuilder>
{code}
then later...
{code}
-downloadURL=${downloadURL}</properties>
+downloadURL=${downloadPhpURL}${eclipsePlatformURL}</properties>
{code}
Example of it working:
{code}
[jbosstools-composite-install_master] $ /qa/tools/opt/groovy-2.4.3/bin/groovy
-DeclipseCacheDirectory=/home/hudson/static_build_env/jbds/tools/sources
-DdownloadURL=${downloadPhpURL}${eclipsePlatformURL}
/mnt/hudson_workspace/workspace/jbosstools-composite-install_master/getAndInstallEclipse.groovy
Downloading: eclipse-platform-4.7.1a-linux-gtk-x86_64.tar.gz from
http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downl...
(x86_64)
[untar] Expanding:
/home/hudson/static_build_env/jbds/tools/sources/eclipse-platform-4.7.1a-linux-gtk-x86_64.tar.gz
into /mnt/hudson_workspace/workspace/jbosstools-composite-install_master{code} --
https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
externalize the Eclipse platform and JEE bundles used for running jbt
builds/tests
----------------------------------------------------------------------------------
Key: JBIDE-25137
URL:
https://issues.jboss.org/browse/JBIDE-25137
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: build, install-tests, integration-tests
Affects Versions: 4.5.1.AM3
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 4.5.1.Final
Currently, we have a number of Eclipse URLs in jobs and they're inconsistently
applied, plus are scattered across a lot of jobs / variations.
Instead, we should externalize these URLs as variables we can control from some other
global properties file, perhaps located in
https://github.com/jbosstools/jbosstools-build-ci/blob/master/util/ and called
*jbosstools-jenkins.properties*. This would make the jobs easier to maintain and I'd
forget to update stuff less often. :D
Affected jobs:
* devstudio_master/job/jbosstools-composite-install_master/config.xml
*
devstudio_master/job/jbosstools-install-p2director.install-tests.matrix_master/config.xml
* devstudio_target_platforms/job/jbosstoolstargetplatform-4.70.x/config.xml
* devstudio_target_platforms/job/jbosstoolstargetplatform-4.71.x/config.xml
* devstudio_target_platforms/job/jbosstoolstargetplatform-4.71.x-experimental/config.xml
*
devstudio_target_platforms/job/jbosstoolstargetplatformrequirements-mirror-matrix/config.xml
* jbosstools-releng/job/jbosstools-cleanup/config.xml
* ...?
URL patterns:
* /eclipse/downloads/drops4/R-4.7.1-201709061700/eclipse-platform-4.7.1-linux-gtk.tar.gz
*
/eclipse/downloads/drops4/M-4.7.1RC4-201709061700/eclipse-platform-4.7.1RC4-linux-gtk.tar.gz
*
/eclipse/downloads/drops4/S-4.7RC4a-201706120950/eclipse-platform-4.7RC4a-linux-gtk.tar.gz
*
http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/d...
*
http://download.eclipse.org/eclipse/downloads/drops4/S-4.7RC4a-2017061209...
* eclipse_downloads_drops4_R-4.7.1-201709061700_eclipse-platform-4.7.1-linux-gtk.tar.gz
* eclipse-platform-4.7.1-linux-gtk.tar.gz
* ... more?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)