Skip to content

Commit 1870d3a

Browse files
pzygielodmatej
authored andcommitted
Dash-licenses during CI
1 parent e10df85 commit 1870d3a

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2024 Contributors to the Eclipse Foundation..
2+
* Copyright (c) 2020, 2025 Contributors to the Eclipse Foundation..
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,9 @@ pipeline {
3333
stages {
3434
stage('build') {
3535
steps {
36-
sh 'mvn -Pstaging,all-tests clean install'
36+
sh 'mvn -Pstaging,all-tests,dash-licenses clean install'
3737
junit testResults: '**/target/surefire-reports/*.xml', allowEmptyResults: true
38+
archiveArtifacts artifacts: 'dash-summary.txt'
3839
}
3940
}
4041
}

pom.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
33
Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
4-
Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation. All rights reserved.
4+
Copyright (c) 2022, 2025 Contributors to the Eclipse Foundation. All rights reserved.
55
66
This program and the accompanying materials are made available under the
77
terms of the Eclipse Public License v. 2.0 which is available at
@@ -459,5 +459,38 @@
459459
</plugins>
460460
</build>
461461
</profile>
462+
<profile>
463+
<id>dash-licenses</id>
464+
<pluginRepositories>
465+
<pluginRepository>
466+
<id>dash-licenses</id>
467+
<url>https://repo.eclipse.org/content/repositories/dash-licenses-releases/</url>
468+
<snapshots>
469+
<enabled>false</enabled>
470+
</snapshots>
471+
</pluginRepository>
472+
</pluginRepositories>
473+
<properties>
474+
<dash.summary>dash-summary.txt</dash.summary>
475+
<dash.fail>true</dash.fail>
476+
<dash.projectId>ee4j.orb</dash.projectId>
477+
</properties>
478+
<build>
479+
<plugins>
480+
<plugin>
481+
<groupId>org.eclipse.dash</groupId>
482+
<artifactId>license-tool-plugin</artifactId>
483+
<version>1.1.0</version>
484+
<executions>
485+
<execution>
486+
<goals>
487+
<goal>license-check</goal>
488+
</goals>
489+
</execution>
490+
</executions>
491+
</plugin>
492+
</plugins>
493+
</build>
494+
</profile>
462495
</profiles>
463496
</project>

0 commit comments

Comments
 (0)