Skip to content

Commit

Permalink
java classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel committed Dec 16, 2024
1 parent 93684ed commit 8c73ae8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pipelines/build/common/sign_temurin_jsf.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ stage('Signing SBOM') {
selector: specific("${buildSBOMLibrariesJob.getNumber()}"),
filter: 'cyclonedx-lib/build/jar/*.jar',
fingerprintArtifacts: true,
target: 'artifacts',
target: 'artifacts/cyclonedx-lib/build/jar',
flatten: true
)

Expand All @@ -71,16 +71,15 @@ stage('Signing SBOM') {
ls -la
for ARTIFACT in $(find . -name "*sbom*.json" | grep -v metadata.json); do
echo "Signing ${ARTIFACT}"
java -cp "./*.jar" temurin.sbom.TemurinSignSBOM --verbose --signSBOM --jsonFile "${ARTIFACT}" --privateKeyFile "$PRIVATE_KEY"
java -cp "cyclonedx-lib/build/jar/*" temurin.sbom.TemurinSignSBOM --verbose --signSBOM --jsonFile "${ARTIFACT}" --privateKeyFile "$PRIVATE_KEY"
echo "Verifying Signature on ${ARTIFACT}"
java -cp "./*.jar" temurin.sbom.TemurinSignSBOM --verbose --verifySignature --jsonFile "${ARTIFACT}" --publicKeyFile "$PUBLIC_KEY"
java -cp "cyclonedx-lib/build/jar/*" temurin.sbom.TemurinSignSBOM --verbose --verifySignature --jsonFile "${ARTIFACT}" --publicKeyFile "$PUBLIC_KEY"
done
'''
}
timeout(time: 1, unit: 'HOURS') {
archiveArtifacts artifacts: 'artifacts/*sbom*.json',
excludes: '*metadata*'
archiveArtifacts artifacts: 'artifacts/*sbom*.json'
}
}
catch (FlowInterruptedException e) {
Expand Down

0 comments on commit 8c73ae8

Please sign in to comment.