Skip to content

Commit 4042ccf

Browse files
committed
#266 Generate BOM
1 parent 90af064 commit 4042ccf

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
@@ -405,6 +405,31 @@
405405
</execution>
406406
</executions>
407407
</plugin>
408+
409+
<plugin>
410+
<groupId>org.cyclonedx</groupId>
411+
<artifactId>cyclonedx-maven-plugin</artifactId>
412+
<version>2.8.1</version>
413+
<configuration>
414+
<schemaVersion>1.5</schemaVersion>
415+
</configuration>
416+
<dependencies>
417+
<dependency>
418+
<groupId>org.eclipse.tycho</groupId>
419+
<artifactId>tycho-sbom</artifactId>
420+
<version>${tycho-version}</version>
421+
</dependency>
422+
</dependencies>
423+
<executions>
424+
<execution>
425+
<id>create-bom</id>
426+
<phase>package</phase>
427+
<goals>
428+
<goal>makeBom</goal>
429+
</goals>
430+
</execution>
431+
</executions>
432+
</plugin>
408433
</plugins>
409434
</pluginManagement>
410435
</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)