@@ -14,6 +14,8 @@ job('Releng/ep-collectResults'){
1414 daysToKeep(5 )
1515 numToKeep(10 )
1616 }
17+
18+ jdk(' temurin-jdk21-latest' )
1719
1820 wrappers { // adds pre/post actions
1921 timestamps()
@@ -31,8 +33,6 @@ buildID=$(echo $buildID|tr -d ' ')
3133buildURL=$(echo $buildURL|tr -d ' ')
3234triggeringJob=$(echo $triggeringJob|tr -d ' ')
3335
34- java_home=/opt/public/common/java/openjdk/jdk-17_x64-latest/bin
35-
3636wget -O ${WORKSPACE}/buildproperties.shsource --no-check-certificate http://download.eclipse.org/eclipse/downloads/drops4/${buildID}/buildproperties.shsource
3737cat ${WORKSPACE}/buildproperties.shsource
3838source ${WORKSPACE}/buildproperties.shsource
@@ -41,67 +41,45 @@ epDownloadDir=/home/data/httpd/download.eclipse.org/eclipse
4141dropsPath=${epDownloadDir}/downloads/drops4
4242buildDir=${dropsPath}/${buildID}
4343
44- workingDir=${epDownloadDir}/workingDir
45-
46- workspace=${workingDir}/${JOB_BASE_NAME}-${BUILD_NUMBER}
47-
48- ssh [email protected] rm -rf ${workingDir}/${JOB_BASE_NAME}* 49-
50- ssh [email protected] mkdir -p ${workspace} 44+ rsync -avzh [email protected] :${buildDir} postingDir 5145
5246#get latest Eclipse platform product
5347epRelDir=$(ssh [email protected] ls -d --format=single-column ${dropsPath}/R-*|sort|tail -1) 54- ssh [email protected] tar -C ${workspace} -xzf ${epRelDir}/eclipse-platform-*-linux-gtk-x86_64.tar.gz 48+ scp [email protected] :${epRelDir}/eclipse-platform-*-linux-gtk-x86_64.tar.gz . 49+
50+ tar -C . -xzf eclipse-platform-*-linux-gtk-x86_64.tar.gz
5551
56- ssh [email protected] PATH=${java_home}:$PATH ${workspace}/ eclipse/eclipse -nosplash \\ 57- -debug - consolelog -data ${workspace}/ workspace-toolsinstall \\
52+ eclipse/eclipse -nosplash \\
53+ -consolelog -data workspace-toolsinstall \\
5854 -application org.eclipse.equinox.p2.director \\
5955 -repository ${ECLIPSE_RUN_REPO},${BUILDTOOLS_REPO},${WEBTOOLS_REPO} \\
60- -installIU org.eclipse.platform.ide,org.eclipse.pde.api.tools,org.eclipse.releng.build.tools.feature.feature.group,org.eclipse.wtp.releng.tools.feature.feature.group \\
61- -destination ${workspace}/basebuilder \\
62- -profile SDKProfile
63-
64- ssh [email protected] rm -rf ${workspace}/eclipse 56+ -installIU org.eclipse.releng.build.tools.feature.feature.group,org.eclipse.wtp.releng.tools.feature.feature.group
6557
6658#get requisite tools
67- ssh [email protected] wget -O ${workspace}/collectTestResults.xml https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/cje-production/scripts/collectTestResults.xml 68- ssh [email protected] wget -O ${workspace}/publish.xml https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/cje-production/scripts/publish.xml 69-
70- cd ${WORKSPACE}
71- git clone https://github.com/eclipse-platform/eclipse.platform.releng.aggregator.git
72- cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder
73- scp -r eclipse [email protected] :${workspace}/eclipse 74- cd ${WORKSPACE}
59+ wget -O collectTestResults.xml https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/cje-production/scripts/collectTestResults.xml
60+ wget -O publish.xml https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/cje-production/scripts/publish.xml
7561
7662#triggering ant runner
77- baseBuilderDir=${workspace}/basebuilder
78- javaCMD=${java_home}/java
79-
80- launcherJar=$(ssh [email protected] find ${baseBuilderDir}/. -name "org.eclipse.equinox.launcher_*.jar" | sort | head -1 ) 81-
82- scp [email protected] :${buildDir}/buildproperties.shsource . 83- source ./buildproperties.shsource
63+ devworkspace=${WORKSPACE}/workspace-antRunner
8464
85- devworkspace=${workspace}/workspace-antRunner
86-
87- ssh [email protected] ${javaCMD} -jar ${launcherJar} -nosplash -consolelog -debug -data $devworkspace -application org.eclipse.ant.core.antRunner -file ${workspace}/collectTestResults.xml \\ 88- -DpostingDirectory=${dropsPath} \\
65+ eclipse/eclipse -nosplash -consolelog -debug -data $devworkspace -application org.eclipse.ant.core.antRunner -file collectTestResults.xml \\
66+ -DpostingDirectory=postingDir \\
8967 -Djob=${triggeringJob} \\
9068 -DbuildURL=${buildURL} \\
9169 -DbuildID=${buildID}
9270
93- devworkspace=${workspace }/workspace-updateTestResults
71+ devworkspace=${WORKSPACE }/workspace-updateTestResults
9472
95- ssh genie.releng@projects-storage. eclipse.org ${javaCMD} -jar ${launcherJar} - nosplash -consolelog -debug -data $devworkspace -application org.eclipse.ant.core.antRunner -file ${workspace}/ publish.xml \\
96- -DpostingDirectory=${dropsPath} \\
73+ eclipse/eclipse - nosplash -consolelog -debug -data $devworkspace -application org.eclipse.ant.core.antRunner -file publish.xml \\
74+ -DpostingDirectory=postingDir \\
9775 -Djob=${triggeringJob} \\
9876 -DbuildID=${buildID} \\
9977 -DeclipseStream=${STREAM} \\
10078 "-DtestsConfigExpected=${TEST_CONFIGURATIONS_EXPECTED}" \\
10179 -DEBuilderDir=${workspace}
10280
103- #Delete Workspace
104- ssh [email protected] rm -rf ${workingDir}/${JOB_BASE_NAME}* 81+ rsync -avzh postingDir/${buildID} [email protected] :${dropsPath} 82+
10583 ''' )
10684 }
10785
0 commit comments