From da92d8a7fb913896801a8e9a4a155265224412b0 Mon Sep 17 00:00:00 2001 From: Haroon Khel Date: Mon, 16 Dec 2024 16:55:06 +0000 Subject: [PATCH] archive sboms --- pipelines/build/common/openjdk_build_pipeline.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/build/common/openjdk_build_pipeline.groovy b/pipelines/build/common/openjdk_build_pipeline.groovy index dbae314f6..4442684be 100644 --- a/pipelines/build/common/openjdk_build_pipeline.groovy +++ b/pipelines/build/common/openjdk_build_pipeline.groovy @@ -1088,7 +1088,7 @@ class Build { context.copyArtifacts( projectName: 'build-scripts/release/sign_temurin_jsf', selector: context.specific("${signSBOMJob.getNumber()}"), - filter: '**/*.sig', + filter: '**/*sbom*.json', fingerprintArtifacts: true, target: 'workspace/target/', flatten: true) @@ -1096,7 +1096,7 @@ class Build { // Archive SBOM signatures in Jenkins try { context.timeout(time: buildTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT, unit: 'HOURS') { - context.archiveArtifacts artifacts: 'workspace/target/*.sig' + context.archiveArtifacts artifacts: 'workspace/target/*sbom*.json' } } catch (FlowInterruptedException e) { throw new Exception("[ERROR] Archive artifact timeout (${buildTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT} HOURS) for ${downstreamJobName} has been reached. Exiting...")