Skip to content

Commit f9631d6

Browse files
committed
[I/Y-Build] Clean-up 'Collect Results' job and reuse it for Y-builds
Part of - #2625
1 parent 233bee4 commit f9631d6

File tree

4 files changed

+13
-169
lines changed

4 files changed

+13
-169
lines changed

JenkinsJobs/Releng/collectPerfResults.groovy

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,22 @@ job('Releng/collectPerfResults'){
1515
numToKeep(10)
1616
}
1717

18-
jdk('openjdk-jdk17-latest')
19-
20-
authenticationToken('collectResults')
21-
2218
wrappers { //adds pre/post actions
2319
timestamps()
2420
preBuildCleanup()
25-
sshAgent('git.eclipse.org-bot-ssh', 'projects-storage.eclipse.org-bot-ssh')
26-
withAnt {
27-
installation('apache-ant-latest')
28-
jdk('openjdk-jdk17-latest')
21+
sshAgent('projects-storage.eclipse.org-bot-ssh')
22+
timeout {
23+
absolute(30)
2924
}
3025
}
3126

3227
steps {
33-
shell('''
34-
#!/bin/bash -x
35-
set -e
28+
shell('''#!/bin/bash -xe
29+
3630
buildID=$(echo $buildID|tr -d ' ')
3731
buildURL=$(echo $buildURL|tr -d ' ')
3832
triggeringJob=$(echo $triggeringJob|tr -d ' ')
33+
3934
java_home=/opt/public/common/java/openjdk/jdk-17_x64-latest/bin
4035
4136
wget -O ${WORKSPACE}/buildproperties.shsource --no-check-certificate http://download.eclipse.org/eclipse/downloads/drops4/${buildID}/buildproperties.shsource
@@ -71,9 +66,9 @@ ssh [email protected] rm -rf ${workspace}/eclipse
7166
#get requisite tools
7267
ssh [email protected] wget -O ${workspace}/collectTestResults.xml https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/cje-production/scripts/collectTestResults.xml
7368
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+
7470
cd ${WORKSPACE}
7571
git clone https://github.com/eclipse-platform/eclipse.platform.releng.aggregator.git
76-
#wget -r -l 3 -np https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles
7772
cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder
7873
scp -r eclipse [email protected]:${workspace}/eclipse
7974
cd ${WORKSPACE}
@@ -91,11 +86,10 @@ devworkspace=${workspace}/workspace-antRunner
9186
9287
ssh [email protected] ${javaCMD} -jar ${launcherJar} -nosplash -consolelog -debug -data $devworkspace -application org.eclipse.ant.core.antRunner -file ${workspace}/collectTestResults.xml \\
9388
-DpostingDirectory=${dropsPath} \\
89+
-Djob=${triggeringJob} \\
9490
-DbuildURL=${buildURL} \\
95-
-DbuildID=${buildID} \\
96-
-Djob=${triggeringJob}
91+
-DbuildID=${buildID}
9792
98-
#
9993
10094
#if all 4 dat files are present generate results tables
10195
#do first so performance.php regenerated
@@ -131,10 +125,4 @@ ssh [email protected] ${javaCMD} -jar ${launcherJar} -n
131125
ssh [email protected] rm -rf ${workingDir}/${JOB_BASE_NAME}*
132126
''')
133127
}
134-
135-
publishers {
136-
extendedEmail {
137-
recipientList("[email protected]")
138-
}
139-
}
140128
}

JenkinsJobs/Releng/collectResults.groovy

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,17 @@ job('Releng/ep-collectResults'){
1515
numToKeep(10)
1616
}
1717

18-
jdk('openjdk-jdk17-latest')
19-
20-
authenticationToken('collectResults')
21-
2218
wrappers { //adds pre/post actions
2319
timestamps()
2420
preBuildCleanup()
25-
sshAgent('git.eclipse.org-bot-ssh', 'projects-storage.eclipse.org-bot-ssh')
21+
sshAgent('projects-storage.eclipse.org-bot-ssh')
2622
timeout {
2723
absolute(30)
2824
}
29-
withAnt {
30-
installation('apache-ant-latest')
31-
jdk('openjdk-jdk17-latest')
32-
}
3325
}
3426

3527
steps {
36-
shell('''
37-
#!/bin/bash -x
28+
shell('''#!/bin/bash -xe
3829
3930
buildID=$(echo $buildID|tr -d ' ')
4031
buildURL=$(echo $buildURL|tr -d ' ')
@@ -46,7 +37,6 @@ wget -O ${WORKSPACE}/buildproperties.shsource --no-check-certificate http://down
4637
cat ${WORKSPACE}/buildproperties.shsource
4738
source ${WORKSPACE}/buildproperties.shsource
4839
49-
5040
epDownloadDir=/home/data/httpd/download.eclipse.org/eclipse
5141
dropsPath=${epDownloadDir}/downloads/drops4
5242
buildDir=${dropsPath}/${buildID}
@@ -58,7 +48,6 @@ workspace=${workingDir}/${JOB_BASE_NAME}-${BUILD_NUMBER}
5848
ssh [email protected] rm -rf ${workingDir}/${JOB_BASE_NAME}*
5949
6050
ssh [email protected] mkdir -p ${workspace}
61-
ssh [email protected] cd ${workspace}
6251
6352
#get latest Eclipse platform product
6453
epRelDir=$(ssh [email protected] ls -d --format=single-column ${dropsPath}/R-*|sort|tail -1)
@@ -84,7 +73,6 @@ cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.tycho
8473
scp -r eclipse [email protected]:${workspace}/eclipse
8574
cd ${WORKSPACE}
8675
87-
8876
#triggering ant runner
8977
baseBuilderDir=${workspace}/basebuilder
9078
javaCMD=${java_home}/java
@@ -101,8 +89,7 @@ ssh [email protected] ${javaCMD} -jar ${launcherJar} -n
10189
-Djob=${triggeringJob} \\
10290
-DbuildURL=${buildURL} \\
10391
-DbuildID=${buildID}
104-
105-
#
92+
10693
devworkspace=${workspace}/workspace-updateTestResults
10794
10895
ssh [email protected] ${javaCMD} -jar ${launcherJar} -nosplash -consolelog -debug -data $devworkspace -application org.eclipse.ant.core.antRunner -file ${workspace}/publish.xml \\
@@ -113,18 +100,12 @@ ssh [email protected] ${javaCMD} -jar ${launcherJar} -n
113100
"-DtestsConfigExpected=${TEST_CONFIGURATIONS_EXPECTED}" \\
114101
-DEBuilderDir=${workspace}
115102
116-
117-
118-
119103
#Delete Workspace
120104
ssh [email protected] rm -rf ${workingDir}/${JOB_BASE_NAME}*
121105
''')
122106
}
123107

124108
publishers {
125-
extendedEmail {
126-
recipientList("[email protected]")
127-
}
128109
downstream('Releng/updateIndex', 'SUCCESS')
129110
}
130111
}

JenkinsJobs/YBuilds/Y_unit_tests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pipeline {
109109
// For smaller test-suites see: https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/be721e33c916b03c342e7b6f334220c6124946f8/production/testScripts/configuration/sdk.tests/testScripts/test.xml#L1893-L1903
110110
archiveArtifacts '**/eclipse-testing/results/**, **/eclipse-testing/directorLogs/**, *.properties, *.txt'
111111
junit keepLongStdio: true, testResults: '**/eclipse-testing/results/xml/*.xml'
112-
build job: 'YPBuilds/ep-collectYbuildResults', wait: false, parameters: [
112+
build job: 'Releng/ep-collectResults', wait: false, parameters: [
113113
string(name: 'triggeringJob', value: "${JOB_BASE_NAME}"),
114114
string(name: 'buildURL', value: "${BUILD_URL}"),
115115
string(name: 'buildID', value: "${params.buildId}")

JenkinsJobs/YBuilds/collectYbuildResults.groovy

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)