Skip to content

Commit 83d1ee8

Browse files
pdulthetraisnel2
authored andcommitted
#266 Generate BOM
1 parent 213ca3e commit 83d1ee8

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ pipeline {
4040

4141
deployer.addonNightlyDropins("${WORKSPACE}/releng/org.polarsys.capella.docgen.site/target/*-dropins-*.zip", deploymentDirName)
4242
deployer.addonNightlyUpdateSite("${WORKSPACE}/releng/org.polarsys.capella.docgen.site/target/repository/*", deploymentDirName)
43-
deployer.addonNightlyUpdateSite("${WORKSPACE}/releng/org.polarsys.capella.docgen.site/target/*-updateSite-*.zip", deploymentDirName)
43+
deployer.addonNightlyUpdateSite("${WORKSPACE}/releng/org.polarsys.capella.docgen.site/target/*-updateSite-*.zip", deploymentDirName)
44+
deployer.addonNightlyUpdateSite("${WORKSPACE}/releng/org.polarsys.capella.docgen.site/target/bom.json", deploymentDirName)
4445

4546
currentBuild.description = "${deploymentDirName} - <a href=\"https://download.eclipse.org/capella/addons/xhtmldocgen/dropins/nightly/${deploymentDirName}\">drop-in</a> - <a href=\"https://download.eclipse.org/capella/addons/xhtmldocgen/updates/nightly/${deploymentDirName}\">update-site</a>"
4647
}

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,31 @@
379379
</execution>
380380
</executions>
381381
</plugin>
382+
383+
<plugin>
384+
<groupId>org.cyclonedx</groupId>
385+
<artifactId>cyclonedx-maven-plugin</artifactId>
386+
<version>2.8.1</version>
387+
<configuration>
388+
<schemaVersion>1.5</schemaVersion>
389+
</configuration>
390+
<dependencies>
391+
<dependency>
392+
<groupId>org.eclipse.tycho</groupId>
393+
<artifactId>tycho-sbom</artifactId>
394+
<version>${tycho-version}</version>
395+
</dependency>
396+
</dependencies>
397+
<executions>
398+
<execution>
399+
<id>create-bom</id>
400+
<phase>package</phase>
401+
<goals>
402+
<goal>makeBom</goal>
403+
</goals>
404+
</execution>
405+
</executions>
406+
</plugin>
382407
</plugins>
383408
</pluginManagement>
384409
</build>

releng/org.polarsys.capella.docgen.site/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@
4646
</execution>
4747
</executions>
4848
</plugin>
49+
50+
<plugin>
51+
<groupId>org.cyclonedx</groupId>
52+
<artifactId>cyclonedx-maven-plugin</artifactId>
53+
<executions>
54+
<execution>
55+
<id>create-bom</id>
56+
</execution>
57+
</executions>
58+
</plugin>
4959
</plugins>
5060
</build>
5161
</project>

0 commit comments

Comments
 (0)