@@ -13,53 +13,6 @@ pipeline {
1313 jdk ' openjdk-jdk25-latest'
1414 }
1515 stages {
16- stage(' Build and Test' ) {
17- steps {
18- sh """ #!/bin/bash -x
19-
20- java -version
21-
22- mkdir -p $WORKSPACE /tmp
23-
24- unset JAVA_TOOL_OPTIONS
25- unset _JAVA_OPTIONS
26-
27- # The max heap should be specified for tycho explicitly
28- # via configuration/argLine property in pom.xml
29- # export MAVEN_OPTS="-Xmx2G"
30-
31- mvn clean install -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99 -Dmaven.repo.local=$WORKSPACE /.m2/repository -DcompilerBaselineMode=disable -DcompilerBaselineReplace=none
32-
33- # Build and test without DOM-first to ensure no regression takes place
34- mvn -U clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE /.m2/repository \
35- -Ptest-on-javase-25 -Pbree-libs -Papi-check -Pjavadoc -Pp2-repo \
36- -pl !org.eclipse.jdt.core.tests.javac \
37- -Dmaven.test.failure.ignore=true \
38- -Dcompare-version-with-baselines.skip=false \
39- -Djava.io.tmpdir=$WORKSPACE /tmp -Dproject.build.sourceEncoding=UTF-8 \
40- -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17,21,24,25 -Djdt.performance.asserts=disabled" \
41- -DDetectVMInstallationsJob.disabled=true \
42- -Dtycho.apitools.debug \
43- -Dtycho.debug.artifactcomparator \
44- -e \
45- -Dcbi-ecj-version=99.99
46- """
47- }
48- post {
49- always {
50- // The following lines use the newest build on master that did not fail a reference
51- // To not fail master build on failed test maven needs to be started with "-Dmaven.test.failure.ignore=true" it will then only marked unstable.
52- // To not fail the build also "unstable: true" is used to only mark the build unstable instead of failing when qualityGates are missed
53- // To accept unstable builds (test errors or new warnings introduced by third party changes) as reference using "ignoreQualityGate:true"
54- // To only show warnings related to the PR on a PR using "publishAllIssues:false"
55- // The eclipse compiler name is changed because the logfile not only contains ECJ but also API warnings.
56- // "pattern:" is used to collect warnings in dedicated files avoiding output of junit tests treated as warnings
57- junit ' **/target/surefire-reports/*.xml'
58- // discoverGitReferenceBuild referenceJob: 'eclipse.jdt.core-github/master'
59- // recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
60- }
61- }
62- }
6316 stage(' javac specific tests' ) {
6417 steps {
6518 sh """ #!/bin/bash -x
0 commit comments