Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 31 additions & 13 deletions JenkinsJobs/Builds/build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ pipeline {
sh '''#!/bin/bash -xe
chmod +x mbscripts/*
chmod +x $CJE_ROOT/scripts/notarizeMacApp.sh
mkdir -p $logDir

./mbscripts/mb010_createEnvfiles.sh ${CJE_ROOT}/buildproperties.shsource 2>&1
'''
Expand Down Expand Up @@ -183,6 +182,7 @@ pipeline {
assignEnvVariable('BASE_BUILDER_ECLIPSE_EXE', "${exe} -nosplash --launcher.suppressErrors")
sh '''
source $CJE_ROOT/buildproperties.shsource
mkdir -p $CJE_ROOT/$TMP_DIR
$BASE_BUILDER_ECLIPSE_EXE \
-debug -consolelog -data $CJE_ROOT/$TMP_DIR/workspace-toolsinstall \
-application org.eclipse.equinox.p2.director \
Expand All @@ -193,17 +193,36 @@ pipeline {
}
}
}
stage('Aggregator maven build'){
environment {
KEYRING = credentials('secret-subkeys-releng.asc')
MAVEN_GPG_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
}
steps {
dir("${CJE_ROOT}/mbscripts") {
sh '''
set -eo pipefail
./mb220_buildSdkPatch.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb220_buildSdkPatch.sh.log
'''
stage('Aggregator maven build') {
environment {
KEYRING = credentials('secret-subkeys-releng.asc')
MAVEN_GPG_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
LOCAL_REPO = 'localMavenRepo'
}
steps {
dir("${AGG_DIR}") {
sh '''#!/bin/bash -xe
source $CJE_ROOT/buildproperties.shsource

mvn clean install -pl :eclipse-sdk-prereqs,:org.eclipse.jdt.core.compiler.batch \
-Dmaven.repo.local=${LOCAL_REPO} -DlocalEcjVersion=99.99 \
-DcompilerBaselineMode=disable -DcompilerBaselineReplace=none

set -o pipefail
mkdir -p ${logDir}

mvn clean verify -DskipTests=true -Pbree-libs -Peclipse-sign \
-Dtycho.debug.artifactcomparator -Dtycho.localArtifacts=ignore \
-Dcbi.jarsigner.continueOnFail=true \
-Dtycho.pgp.signer=bc -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" \
-Djgit.dirtyWorkingTree=error \
-Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
-Dmaven.repo.local=${LOCAL_REPO} -Dcbi-ecj-version=99.99 \
-DbuildType=${BUILD_TYPE} -DbuildId=${BUILD_ID} -DbuildTimestamp=${TIMESTAMP} \
-e -T 1C \
2>&1 | tee ${logDir}/mb220_buildSdkPatch.sh.log
# Capture the build log for the subsequent scan for comparator errors
'''
}
}
}
Expand Down Expand Up @@ -463,7 +482,6 @@ pipeline {
# Build Equinox Launcher archives
pushd $CJE_ROOT
mkdir -p $ECLIPSE_BUILDER_DIR/equinox/$TMP_DIR
mkdir -p $CJE_ROOT/$TMP_DIR
$BASE_BUILDER_ECLIPSE_EXE \
-application org.eclipse.ant.core.antRunner \
-buildfile ${ECLIPSE_BUILDER_DIR}/equinox/buildConfigs/equinox-launchers/build.xml \
Expand Down
3 changes: 1 addition & 2 deletions cje-production/buildproperties.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#*******************************************************************************
# Copyright (c) 2018, 2025 IBM Corporation and others.
# Copyright (c) 2018, 2026 IBM Corporation and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -24,7 +24,6 @@ STREAMMinor="40"
STREAMService="0"
TMP_DIR="tmp"
DOWNLOAD_HOST="download.eclipse.org"
LOCAL_REPO="localMavenRepo"
NEXT_JAVA_RELEASE_DATE=""

PREVIOUS_RELEASE_VER="4.39"
Expand Down
50 changes: 0 additions & 50 deletions cje-production/mbscripts/mb220_buildSdkPatch.sh

This file was deleted.

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

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