Skip to content

Commit fe17caf

Browse files
committed
[I/Y-Build] Inline buildSdkPatch script into build pipeline
1 parent 8e4b9c3 commit fe17caf

File tree

4 files changed

+32
-69
lines changed

4 files changed

+32
-69
lines changed

JenkinsJobs/Builds/build.jenkinsfile

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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 \

cje-production/buildproperties.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#*******************************************************************************
2-
# Copyright (c) 2018, 2025 IBM Corporation and others.
2+
# Copyright (c) 2018, 2026 IBM Corporation and others.
33
#
44
# This program and the accompanying materials
55
# are made available under the terms of the Eclipse Public License 2.0
@@ -24,7 +24,6 @@ STREAMMinor="40"
2424
STREAMService="0"
2525
TMP_DIR="tmp"
2626
DOWNLOAD_HOST="download.eclipse.org"
27-
LOCAL_REPO="localMavenRepo"
2827
NEXT_JAVA_RELEASE_DATE=""
2928

3029
PREVIOUS_RELEASE_VER="4.39"

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)