@@ -61,6 +61,8 @@ pipeline {
6161 assignEnvVariable('TEST_CONFIGURATIONS_EXPECTED', BUILD.tests.collect{ c ->
6262 "${TEST_NAME_PREFIX}-${c.os}-${c.arch}-java${c.javaVersion}_${c.os}.${c.ws}.${c.arch}_${c.javaVersion}"
6363 }.join(','))
64+
65+ utilities = load 'JenkinsJobs/shared/utilities.groovy'
6466 }
6567 dir("${CJE_ROOT}") {
6668 sh '''#!/bin/bash -xe
@@ -73,6 +75,7 @@ pipeline {
7375 exportPropertiesAsEnvironmentVariables("${CJE_ROOT}/buildproperties.properties", [
7476 'BUILD_ID',
7577 'STREAM', 'RELEASE_VER',
78+ 'PREVIOUS_RELEASE_ID', 'PREVIOUS_RELEASE_VER',
7679 ])
7780 }
7881 }
@@ -191,14 +194,21 @@ pipeline {
191194 }
192195 }
193196 }
194- stage('Create Base builder'){
195- steps {
196- dir("${CJE_ROOT}/mbscripts") {
197- sshagent(['projects-storage.eclipse.org-bot-ssh']) {
198- sh '''#!/bin/bash -xe
199- ./mb020_createBaseBuilder.sh $CJE_ROOT/buildproperties.shsource 2>&1
200- '''
201- }
197+ stage('Create base builder'){
198+ steps {
199+ script{
200+ def eclipsePlatformLatestRelease = "https://download.eclipse.org/eclipse/downloads/drops4/${PREVIOUS_RELEASE_ID}/eclipse-platform-${PREVIOUS_RELEASE_VER}-linux-gtk-x86_64.tar.gz"
201+ def exe = utilities.installDownloadableTool('eclipse', eclipsePlatformLatestRelease) + '/eclipse'
202+ assignEnvVariable('BASE_BUILDER_ECLIPSE_EXE', "${exe} -nosplash --launcher.suppressErrors")
203+ sh '''
204+ source $CJE_ROOT/buildproperties.shsource
205+ $BASE_BUILDER_ECLIPSE_EXE \
206+ -debug -consolelog -data $CJE_ROOT/$TMP_DIR/workspace-toolsinstall \
207+ -application org.eclipse.equinox.p2.director \
208+ -repository ${ECLIPSE_RUN_REPO},${BUILDTOOLS_REPO},https://download.eclipse.org/cbi/updates/p2-analyzers/products/nightly/latest \
209+ -installIU org.eclipse.pde.api.tools,org.eclipse.releng.build.tools.feature.feature.group,org.eclipse.cbi.p2repo.analyzers \
210+ -profile SDKProfile
211+ '''
202212 }
203213 }
204214 }
@@ -252,7 +262,7 @@ pipeline {
252262 cp ${logDir}/mb220_buildSdkPatch.sh.log $CJE_ROOT/$DROP_DIR/$BUILD_ID/buildlogs/mb060_run-maven-build_output.txt
253263
254264 pushd $CJE_ROOT/$DROP_DIR/$BUILD_ID
255- java -jar $LAUNCHER_JAR \
265+ $BASE_BUILDER_ECLIPSE_EXE \
256266 -application org.eclipse.ant.core.antRunner \
257267 -buildfile $ECLIPSE_BUILDER_DIR/eclipse/buildScripts/eclipse_compare.xml \
258268 -data $CJE_ROOT/$TMP_DIR/workspace-comparatorLogs \
@@ -297,21 +307,39 @@ pipeline {
297307 }
298308 stage('Generate Repo reports') {
299309 steps {
300- dir("${CJE_ROOT}/mbscripts") {
301- sh '''#!/bin/bash -xe
302- ./mb500_createRepoReports.sh $CJE_ROOT/buildproperties.shsource 2>&1
303- '''
304- }
310+ sh '''#!/bin/bash -xe
311+ source $CJE_ROOT/buildproperties.shsource
312+ $BASE_BUILDER_ECLIPSE_EXE \
313+ -application org.eclipse.cbi.p2repo.analyzers.repoReport \
314+ -data $CJE_ROOT/$TMP_DIR/workspace-report -vmargs -Xmx1g \
315+ -DreferenceRepo=$CJE_ROOT/$TMP_DIR/$BUILD_TO_COMPARE_SITE/$PREVIOUS_RELEASE_VER/$BASEBUILD_ID \
316+ -DreportRepoDir=${PLATFORM_REPO_DIR} \
317+ -DreportOutputDir=${CJE_ROOT}/${DROP_DIR}/${BUILD_ID}/buildlogs
318+ '''
305319 }
306320 }
307321 stage('Generate API tools reports') {
308322 steps {
309- dir("${CJE_ROOT}/mbscripts") {
310- sh '''#!/bin/bash -xe
311- ./mb510_createApiToolsReports.sh $CJE_ROOT/buildproperties.shsource 2>&1
312- rm -rf $CJE_ROOT/$DROP_DIR/$BUILD_ID/apitoolingreference
313- '''
314- }
323+ sh '''#!/bin/bash -xe
324+ source $CJE_ROOT/buildproperties.shsource
325+ pushd $CJE_ROOT/$DROP_DIR/$BUILD_ID
326+ $BASE_BUILDER_ECLIPSE_EXE \
327+ -application org.eclipse.ant.core.antRunner \
328+ -buildfile $ECLIPSE_BUILDER_DIR/eclipse/buildScripts/api-tools-builder.xml \
329+ -data $CJE_ROOT/$TMP_DIR/workspace-apitoolingsLogs \
330+ -DEBuilderDir=$ECLIPSE_BUILDER_DIR \
331+ -DbuildDirectory=$CJE_ROOT/$DROP_DIR/$BUILD_ID \
332+ -DbuildId=$BUILD_ID \
333+ -DbuildLabel=$BUILD_ID \
334+ -DbuildWorkingArea=$CJE_ROOT/$AGG_DIR \
335+ -DpreviousBaseURL=https://$DOWNLOAD_HOST/eclipse/downloads/drops4/$PREVIOUS_RELEASE_ID/eclipse-SDK-$PREVIOUS_RELEASE_VER-win32-x86_64.zip \
336+ -DpreviousBaselineName=Eclipse-SDK-$PREVIOUS_RELEASE_VER \
337+ -DpreviousBaselineFilename=eclipse-SDK-$PREVIOUS_RELEASE_VER-win32-x86_64.zip \
338+ -Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
339+ apiToolsReports
340+ popd
341+ rm -rf $CJE_ROOT/$DROP_DIR/$BUILD_ID/apitoolingreference
342+ '''
315343 }
316344 }
317345 stage('Promote Eclipse platform') {
@@ -481,6 +509,9 @@ pipeline {
481509 }
482510}
483511
512+ @groovy.transform.Field
513+ def utilities = null
514+
484515@NonCPS
485516def assignEnvVariable(String name, String value) {
486517 env[name] = value
0 commit comments