Skip to content

Commit

Permalink
[Releng] optionally build dedicated p2 repo
Browse files Browse the repository at this point in the history
with JDT Core content, to facilitate testing with downstream consumers.

Fixes #2138
  • Loading branch information
mickaelistria authored and akurtakov committed Mar 12, 2024
1 parent 1d93115 commit b7b0871
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pipeline {
mvn clean install -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99 -Dmaven.repo.local=$WORKSPACE/.m2/repository -DcompilerBaselineMode=disable -DcompilerBaselineReplace=none
mvn -U clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-Ptest-on-javase-21 -Pbree-libs -Papi-check -Pjavadoc \
-Ptest-on-javase-21 -Pbree-libs -Papi-check -Pjavadoc -Pp2-repo \
-Dmaven.test.failure.ignore=true \
-Dcompare-version-with-baselines.skip=false \
-Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 \
Expand All @@ -44,7 +44,7 @@ pipeline {
}
post {
always {
archiveArtifacts artifacts: '*.log,*/target/work/data/.metadata/*.log,*/tests/target/work/data/.metadata/*.log,apiAnalyzer-workspace/.metadata/*.log', allowEmptyArchive: true
archiveArtifacts artifacts: '*.log,*/target/work/data/.metadata/*.log,*/tests/target/work/data/.metadata/*.log,apiAnalyzer-workspace/.metadata/*.log,repository/target/repository/**', allowEmptyArchive: true
// The following lines use the newest build on master that did not fail a reference
// 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.
// To not fail the build also "unstable: true" is used to only mark the build unstable instead of failing when qualityGates are missed
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
</repository>
</repositories>
</profile>
<profile>
<id>p2-repo</id>
<modules>
<module>repository</module>
</modules>
</profile>
</profiles>

<modules>
Expand Down
25 changes: 25 additions & 0 deletions repository/category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<category-def name="org.eclipse.jdt.core.bundles" label="JDT Core bundles"/>
<bundle id="org.eclipse.jdt.annotation" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
<bundle id="org.eclipse.jdt.apt.core" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
<bundle id="org.eclipse.jdt.apt.pluggable.core" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
<bundle id="org.eclipse.jdt.apt.ui" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
<bundle id="org.eclipse.jdt.core" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
<bundle id="org.eclipse.jdt.core.compiler.batch" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
<bundle id="org.eclipse.jdt.core.formatterapp" version="0.0.0">
<category name="org.eclipse.jdt.core.bundles"/>
</bundle>
</site>

0 comments on commit b7b0871

Please sign in to comment.