Skip to content

Commit

Permalink
Fix Java class path
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel committed Dec 16, 2024
1 parent bf51640 commit 93684ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pipelines/build/common/sign_temurin_jsf.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,16 @@ stage('Signing SBOM') {
ls -la
for ARTIFACT in $(find . -name "*sbom*.json" | grep -v metadata.json); do
echo "Signing ${ARTIFACT}"
java -cp "cyclonedx-lib/build/jar/*.jar" temurin.sbom.TemurinSignSBOM --verbose --signSBOM --jsonFile "${ARTIFACT}" --privateKeyFile "$PRIVATE_KEY"
java -cp "./*.jar" temurin.sbom.TemurinSignSBOM --verbose --signSBOM --jsonFile "${ARTIFACT}" --privateKeyFile "$PRIVATE_KEY"
echo "Verifying Signature on ${ARTIFACT}"
java -cp "cyclonedx-lib/build/jar/*.jar" temurin.sbom.TemurinSignSBOM --verbose --verifySignature --jsonFile "${ARTIFACT}" --publicKeyFile "$PUBLIC_KEY"
java -cp "./*.jar" temurin.sbom.TemurinSignSBOM --verbose --verifySignature --jsonFile "${ARTIFACT}" --publicKeyFile "$PUBLIC_KEY"
done
'''
}
timeout(time: 1, unit: 'HOURS') {
archiveArtifacts artifacts: 'artifacts/*sbom*.json'
archiveArtifacts artifacts: 'artifacts/*sbom*.json',
excludes: '*metadata*'
}
}
catch (FlowInterruptedException e) {
Expand Down

0 comments on commit 93684ed

Please sign in to comment.