@@ -72,7 +72,6 @@ pipeline {
7272 sh '''#!/bin/bash -xe
7373 chmod +x mbscripts/*
7474 chmod +x $CJE_ROOT/scripts/notarizeMacApp.sh
75- mkdir -p $logDir
7675
7776 ./mbscripts/mb010_createEnvfiles.sh ${CJE_ROOT}/buildproperties.shsource 2>&1
7877 '''
@@ -183,6 +182,7 @@ pipeline {
183182 assignEnvVariable('BASE_BUILDER_ECLIPSE_EXE', "${exe} -nosplash --launcher.suppressErrors")
184183 sh '''
185184 source $CJE_ROOT/buildproperties.shsource
185+ mkdir -p $CJE_ROOT/$TMP_DIR
186186 $BASE_BUILDER_ECLIPSE_EXE \
187187 -debug -consolelog -data $CJE_ROOT/$TMP_DIR/workspace-toolsinstall \
188188 -application org.eclipse.equinox.p2.director \
@@ -193,17 +193,36 @@ pipeline {
193193 }
194194 }
195195 }
196- stage('Aggregator maven build'){
197- environment {
198- KEYRING = credentials('secret-subkeys-releng.asc')
199- MAVEN_GPG_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
200- }
201- steps {
202- dir("${CJE_ROOT}/mbscripts") {
203- sh '''
204- set -eo pipefail
205- ./mb220_buildSdkPatch.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb220_buildSdkPatch.sh.log
206- '''
196+ stage('Aggregator maven build') {
197+ environment {
198+ KEYRING = credentials('secret-subkeys-releng.asc')
199+ MAVEN_GPG_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
200+ LOCAL_REPO = 'localMavenRepo'
201+ }
202+ steps {
203+ dir("${AGG_DIR}") {
204+ sh '''#!/bin/bash -xe
205+ source $CJE_ROOT/buildproperties.shsource
206+
207+ mvn clean install -pl :eclipse-sdk-prereqs,:org.eclipse.jdt.core.compiler.batch \
208+ -Dmaven.repo.local=${LOCAL_REPO} -DlocalEcjVersion=99.99 \
209+ -DcompilerBaselineMode=disable -DcompilerBaselineReplace=none
210+
211+ set -o pipefail
212+ mkdir -p ${logDir}
213+
214+ mvn clean verify -DskipTests=true -Pbree-libs -Peclipse-sign \
215+ -Dtycho.debug.artifactcomparator -Dtycho.localArtifacts=ignore \
216+ -Dcbi.jarsigner.continueOnFail=true \
217+ -Dtycho.pgp.signer=bc -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" \
218+ -Djgit.dirtyWorkingTree=error \
219+ -Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
220+ -Dmaven.repo.local=${LOCAL_REPO} -Dcbi-ecj-version=99.99 \
221+ -DbuildType=${BUILD_TYPE} -DbuildId=${BUILD_ID} -DbuildTimestamp=${TIMESTAMP} \
222+ -e -T 1C \
223+ 2>&1 | tee ${logDir}/mb220_buildSdkPatch.sh.log
224+ # Capture the build log for the subsequent scan for comparator errors
225+ '''
207226 }
208227 }
209228 }
@@ -463,7 +482,6 @@ pipeline {
463482 # Build Equinox Launcher archives
464483 pushd $CJE_ROOT
465484 mkdir -p $ECLIPSE_BUILDER_DIR/equinox/$TMP_DIR
466- mkdir -p $CJE_ROOT/$TMP_DIR
467485 $BASE_BUILDER_ECLIPSE_EXE \
468486 -application org.eclipse.ant.core.antRunner \
469487 -buildfile ${ECLIPSE_BUILDER_DIR}/equinox/buildConfigs/equinox-launchers/build.xml \
0 commit comments