From 27ba9e2ec77c94c8cc929962ebf177611c918cd1 Mon Sep 17 00:00:00 2001 From: Philippe DUL Date: Fri, 27 Sep 2024 13:45:15 +0200 Subject: [PATCH] #2901 Generate a BOM for Capella --- Jenkinsfile | 12 ++++++---- pom.xml | 24 +++++++++++++++++++ .../org.polarsys.capella.rcp.product/pom.xml | 9 +++++++ 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3548c1a322..33586fc811 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,7 +48,7 @@ pipeline { os = 'mac' def jdkMacFolder = os + jre downloader.downloadTemurinJDK17(jdkMacFolder, os) - + os = 'mac-aarch64' def jdkMacSiliconFolder = os + jre downloader.downloadTemurinJDK17(jdkMacSiliconFolder, os) @@ -82,7 +82,8 @@ pipeline { deployer.capellaNightlyProduct("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.product/target/products/capella-*.zip", deploymentDirName) deployer.capellaNightlyProduct("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.product/target/products/capella-*.gz", deploymentDirName) - + deployer.capellaNightlyProduct("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.product/target/bom.json", deploymentDirName) + deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.test.site/target/repository/**", "${deploymentDirName}/org.polarsys.capella.test.site") deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.egf.site/target/repository/**", "${deploymentDirName}/org.polarsys.capella.egf.site") deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.site/target/repository/**", "${deploymentDirName}/org.polarsys.capella.rcp.site") @@ -108,12 +109,13 @@ pipeline { deployer.capellaNightlyProduct("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.product/target/products/capella-*.zip", deploymentDirName) deployer.capellaNightlyProduct("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.product/target/products/capella-*.gz", deploymentDirName) - + deployer.capellaNightlyProduct("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.product/target/bom.json", deploymentDirName) + deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.test.site/target/repository/**", "${deploymentDirName}/org.polarsys.capella.test.site") deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.egf.site/target/repository/**", "${deploymentDirName}/org.polarsys.capella.egf.site") deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.rcp.site/target/repository/**", "${deploymentDirName}/org.polarsys.capella.rcp.site") deployer.capellaNightlyUpdateSite("${WORKSPACE}/releng/plugins/org.polarsys.capella.targets/full/*", "${deploymentDirName}/targets") - + currentBuild.description = "${BUILD_KEY} - build - product" } } } @@ -210,7 +212,7 @@ pipeline { post { always { - archiveArtifacts artifacts: '**/*.log, *.log, *.xml, **/*.layout, *.exec' + archiveArtifacts artifacts: '**/*.log, *.log, *.xml, **/*.json, **/*.layout, *.exec' script { github.removeBuildStartedLabel() diff --git a/pom.xml b/pom.xml index 0ca51dfa22..0ebc4af45d 100644 --- a/pom.xml +++ b/pom.xml @@ -234,6 +234,30 @@ + + org.cyclonedx + cyclonedx-maven-plugin + 2.8.1 + + 1.5 + + + + org.eclipse.tycho + tycho-sbom + ${tycho-version} + + + + + create-bom + package + + makeBom + + + + diff --git a/releng/plugins/org.polarsys.capella.rcp.product/pom.xml b/releng/plugins/org.polarsys.capella.rcp.product/pom.xml index efd95a812c..e50ca3baf0 100644 --- a/releng/plugins/org.polarsys.capella.rcp.product/pom.xml +++ b/releng/plugins/org.polarsys.capella.rcp.product/pom.xml @@ -232,6 +232,15 @@ + + org.cyclonedx + cyclonedx-maven-plugin + + + create-bom + + +