@@ -193,17 +193,40 @@ 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+ }
201+ steps {
202+ dir("${AGG_DIR}") {
203+ sh '''#!/bin/bash -xe
204+ set -o pipefail
205+ source $CJE_ROOT/buildproperties.shsource
206+
207+ mkdir -p $CJE_ROOT/$TMP_DIR
208+
209+ mvn clean install -pl :eclipse-sdk-prereqs,:org.eclipse.jdt.core.compiler.batch \
210+ -DlocalEcjVersion=99.99 \
211+ -Dmaven.repo.local=$LOCAL_REPO -DcompilerBaselineMode=disable -DcompilerBaselineReplace=none
212+
213+ mvn clean verify -DskipTests=true -Pbree-libs -Peclipse-sign \
214+ -Dtycho.debug.artifactcomparator \
215+ -Dtycho.localArtifacts=ignore \
216+ -Dcbi.jarsigner.continueOnFail=true \
217+ -Dtycho.pgp.signer=bc -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" \
218+ -Djgit.dirtyWorkingTree=error \
219+ -Dmaven.repo.local=$LOCAL_REPO \
220+ -Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
221+ -DbuildTimestamp=$TIMESTAMP \
222+ -DbuildType=$BUILD_TYPE \
223+ -DbuildId=$BUILD_ID \
224+ -Dcbi-ecj-version=99.99 \
225+ -e \
226+ -T 1C \
227+ 2>&1 | tee $logDir/mb220_buildSdkPatch.sh.log
228+ # The last line captures the build log to subsequently scan it for comparator errors
229+ '''
207230 }
208231 }
209232 }
0 commit comments