Skip to content

Commit c1c7a40

Browse files
committed
[I/Y-Build] Inline mb220_buildSdkPatch.sh script into build pipeline
1 parent eee2a86 commit c1c7a40

3 files changed

Lines changed: 34 additions & 65 deletions

File tree

JenkinsJobs/Builds/build.jenkinsfile

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

cje-production/mbscripts/mb220_buildSdkPatch.sh

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

cje-production/readme.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ This is the location where we will develop production scripts for use on Cloudbe
33
Here are some ground rules
44
1. Each script starts with mb<xxx>_<scriptname>.sh. xxx is a 3 digit number
55
000-099 - preparing build environment like setting environment variables etc.
6-
200-299 - Maven operations(Updating pom with versions from manifest, create tar ball, build SDK/patch etc)
7-
300-399 - gather parts (collecting different artifacts into a temporary build location)
8-
500-599 - Generate build reports (running p2.repo.analyzers and dirt report, jdeps reports etc)
9-
600-699 - promote the build to download.eclipse.org.
106

117
2. Every script should accept $ENV_FILE. this envrironment file is created at the preparing the build environment stage.
128
3. Every script should source "common-functions.shsource". This will contain common methods used across the scripts

0 commit comments

Comments
 (0)