Feat: Allow SBOM to run in docker-maven jobs 96/72496/1 v0.89.7
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 27 Dec 2023 22:12:13 +0000 (14:12 -0800)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 27 Dec 2023 22:12:13 +0000 (14:12 -0800)
Issue: RELENG-5062
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: Ifd685f1c6266397a0086093fcb3680a02725d999

jjb/lf-maven-jobs.yaml
releasenotes/notes/sbom-docker-maven-stage-2411754809edbe33.yaml [new file with mode: 0644]

index 00cafd2..f2693d4 100644 (file)
             CONTAINER_PUSH_REGISTRY={container-staging-registry}
       - lf-maven-build:
           mvn-goals: "{mvn-goals}"
+      # With SBOM Generator
+      - conditional-step:
+          condition-kind: boolean-expression
+          condition-expression: "{sbom-generator}"
+          steps:
+            - shell: echo 'Running SBOM Generator'
+            - lf-infra-maven-sbom-generator:
+                sbom-flags: "{sbom-flags}"
       - lf-sigul-sign-dir:
           sign-artifacts: "{sign-artifacts}"
           sign-dir: "$WORKSPACE/m2repo"
diff --git a/releasenotes/notes/sbom-docker-maven-stage-2411754809edbe33.yaml b/releasenotes/notes/sbom-docker-maven-stage-2411754809edbe33.yaml
new file mode 100644 (file)
index 0000000..ac56827
--- /dev/null
@@ -0,0 +1,4 @@
+---
+features:
+  - |
+    Allow SBOM reports to be generated for docker-maven stage jobs.