Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ Snap.*
.DS_Store
.polyglot.*
pom.tycho

.mvn/.develocity/develocity-workspace-id
43 changes: 43 additions & 0 deletions .mvn/develocity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!--
*******************************************************************************
* Copyright (c) 2025 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0/.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* See git history
*******************************************************************************
-->
<develocity
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd">
<server>
<url>https://develocity-staging.eclipse.org</url>
</server>
<projectId>eclipse.pde</projectId>
<buildScan>
<obfuscation>
<ipAddresses>0.0.0.0</ipAddresses>
</obfuscation>
<publishing>
<onlyIf>
<![CDATA[authenticated]]>
</onlyIf>
</publishing>
<backgroundBuildScanUpload>#{isFalse(env['JENKINS_URL'])}</backgroundBuildScanUpload>
</buildScan>
<buildCache>
<local>
<enabled>true</enabled>
</local>
<remote>
<enabled>true</enabled>
<storeEnabled>#{isTrue(env['JENKINS_URL'])}</storeEnabled>
</remote>
</buildCache>
</develocity>
10 changes: 10 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@
<artifactId>tycho-build</artifactId>
<version>4.0.8</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
<artifactId>develocity-maven-extension</artifactId>
<version>2.0.1</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
<artifactId>common-custom-user-data-maven-extension</artifactId>
<version>2.0.1</version>
</extension>
</extensions>
32 changes: 21 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
def secrets = [
[path: 'cbi/eclipse.pde/develocity.eclipse.org', secretValues: [
[envVar: 'DEVELOCITY_ACCESS_KEY', vaultKey: 'api-token']
]
]
]

pipeline {
options {
timeout(time: 60, unit: 'MINUTES')
Expand All @@ -16,17 +23,20 @@ pipeline {
stage('Build') {
steps {
xvnc(useXauthority: true) {
sh """
mvn clean verify -Dmaven.repo.local=$WORKSPACE/.m2/repository \
--fail-at-end --update-snapshots --batch-mode --no-transfer-progress --show-version --errors \
-Pbree-libs -Papi-check -Pjavadoc -Ptck \
${env.BRANCH_NAME=='master' ? '-Peclipse-sign': ''} \
-Dcompare-version-with-baselines.skip=false \
-Dmaven.test.failure.ignore=true \
-Dtycho.debug.artifactcomparator \
-Dpde.docs.baselinemode=fail
"""
}
withVault([vaultSecrets: secrets]) {
sh """
mvn clean verify -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-Ddevelocity.storage.directory=$WORKSPACE/.m2/.develocity \
--fail-at-end --update-snapshots --batch-mode --no-transfer-progress --show-version --errors \
-Pbree-libs -Papi-check -Pjavadoc -Ptck \
${env.BRANCH_NAME=='master' ? '-Peclipse-sign': ''} \
-Dcompare-version-with-baselines.skip=false \
-Dmaven.test.failure.ignore=false \
-Dtycho.debug.artifactcomparator \
-Dpde.docs.baselinemode=fail
"""
}
}
}
post {
always {
Expand Down
Loading