Skip to content

Commit 8210d25

Browse files
committed
[I/Y-Build] Unify temp directory and local Maven cache configuration
Ensure all Maven builds use the same (workspace) local Maven cache.
1 parent 80848ec commit 8210d25

7 files changed

Lines changed: 15 additions & 17 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
bin/
2-
TMP/m2repo/
32
settings.xml
4-
setup.sh
53
*~
64
*.bak
75
workspace/
86
.metadata/
97
RemoteSystemsTempFiles/
10-
/apiAnalyzer-workspace/
118
eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/samples/*/doc-html
129
/tools/
1310

JenkinsJobs/Builds/build.jenkinsfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,25 @@ pipeline {
3131
maven 'apache-maven-latest'
3232
}
3333
environment {
34-
MAVEN_OPTS = '-Xmx4G'
3534
CJE_ROOT = "${WORKSPACE}/cje-production"
3635
SCRIPTS = "${WORKSPACE}/scripts"
3736
AGG_DIR = "${CJE_ROOT}/gitCache/eclipse.platform.releng.aggregator"
37+
TEMP_DIR = "${CJE_ROOT}/tmp"
3838
logDir = "$CJE_ROOT/buildlogs"
3939

4040
PRODUCTS_DIR = "${AGG_DIR}/products"
4141
SITES_DIR = "${AGG_DIR}/sites"
4242
PLATFORM_REPO_DIR = "${SITES_DIR}/eclipse-platform-repository/target/repository"
43-
4443
DROP_DIR = "${CJE_ROOT}/siteDir/eclipse/downloads/drops4"
4544
EQUINOX_DROP_DIR = "${CJE_ROOT}/siteDir/equinox/drops"
4645
// Download server paths
4746
EP_ROOT = '/home/data/httpd/download.eclipse.org'
4847
EP_ECLIPSE_UPDATES = "${EP_ROOT}/eclipse/updates"
4948
EP_ECLIPSE_DROPS = "${EP_ROOT}/eclipse/downloads/drops4"
5049
EP_EQUINOX_DROPS = "${EP_ROOT}/equinox/drops"
50+
// Tool configurations
51+
MAVEN_OPTS = "-Xmx4G -Dmaven.repo.local=${TEMP_DIR}/maven-repo"
52+
JDK_JAVA_OPTIONS = "-Djava.io.tmpdir=${TEMP_DIR}"
5153
}
5254
stages {
5355
stage('Set up environment') {
@@ -177,16 +179,15 @@ pipeline {
177179
environment {
178180
KEYRING = credentials('secret-subkeys-releng.asc')
179181
MAVEN_GPG_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
180-
LOCAL_REPO = 'localMavenRepo'
181182
}
182183
steps {
183184
dir("${AGG_DIR}") {
184185
sh '''#!/bin/bash -xe
185186
source $CJE_ROOT/buildproperties.shsource
186-
mkdir -p ${CJE_ROOT}/${TMP_DIR}
187+
mkdir -p ${TEMP_DIR}
187188

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

192193
set -o pipefail
@@ -197,8 +198,7 @@ pipeline {
197198
-Dcbi.jarsigner.continueOnFail=true \
198199
-Dtycho.pgp.signer=bc -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" \
199200
-Djgit.dirtyWorkingTree=error \
200-
-Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
201-
-Dmaven.repo.local=${LOCAL_REPO} -Dcbi-ecj-version=99.99 \
201+
-Dcbi-ecj-version=99.99 \
202202
-DbuildType=${BUILD_TYPE} -DbuildId=${BUILD_ID} -DbuildTimestamp=${TIMESTAMP} \
203203
-e -T 1C \
204204
2>&1 | tee ${logDir}/mb220_buildSdkPatch.sh.log
@@ -235,7 +235,6 @@ pipeline {
235235
java \
236236
-DbuildDirectory=${DROP_DIR}/$BUILD_ID \
237237
-DcomparatorRepo=${comparatorRepo} \
238-
-Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
239238
${WORKSPACE}/scripts/releng/ComparatorSummaryExtractor.java
240239

241240
comparatorLogMinimumSize=350
@@ -352,13 +351,13 @@ pipeline {
352351

353352
# Generate repository reports
354353
mvn tycho-eclipse:eclipse-run@generate-repo-report -f eclipse-platform-parent \
355-
-Declipserun.workArea=${CJE_ROOT}/${TMP_DIR}/repo-report \
354+
-Declipserun.workArea=${TEMP_DIR}/repo-report \
356355
-DreportRepoDir=${PLATFORM_REPO_DIR} \
357356
-DreportOutputDir=${DROP_DIR}/${BUILD_ID}/buildlogs
358357

359358
# Generate API-tools reports
360359
mvn tycho-eclipse:eclipse-run@generate-api-report -f eclipse-platform-parent \
361-
-Declipserun.workArea=${CJE_ROOT}/${TMP_DIR}/apitoolings-logs \
360+
-Declipserun.workArea=${TEMP_DIR}/apitoolings-logs \
362361
-DgitRepoRoot=${AGG_DIR} \
363362
-DbuildDirectory=${DROP_DIR}/${BUILD_ID} \
364363
-DbuildId=$BUILD_ID \

cje-production/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Contains the git cache and maven build runs from there
2+
/gitCache/
3+
# Contains the build site directory structure
4+
/siteDir/
5+
# Contains the temporary files of the build
6+
/tmp/

cje-production/buildproperties.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ STREAM="4.40.0"
2222
STREAMMajor="4"
2323
STREAMMinor="40"
2424
STREAMService="0"
25-
TMP_DIR="tmp"
2625
NEXT_JAVA_RELEASE_DATE=""
2726

2827
PREVIOUS_RELEASE_VER="4.39"

cje-production/gitCache/readme.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

cje-production/siteDir/readme.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

eclipse-platform-parent/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@
557557
<arg>-DpreviousBaseURL=https://download.eclipse.org/eclipse/downloads/drops4/${previousReleaseId}/eclipse-SDK-${previousReleaseVer}-win32-x86_64.zip</arg>
558558
<arg>-DpreviousBaselineName=Eclipse-SDK-${previousReleaseVer}</arg>
559559
<arg>-DpreviousBaselineFilename=eclipse-SDK-${previousReleaseVer}-win32-x86_64.zip</arg>
560-
<arg>-Djava.io.tmpdir=${env.CJE_ROOT}/${env.TMP_DIR}</arg>
561560
</jvmArgs>
562561
<dependencies>
563562
<dependency>

0 commit comments

Comments
 (0)