Skip to content

Commit

Permalink
Add set -eu to sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel committed Dec 16, 2024
1 parent 8d561b3 commit 381ee19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipelines/build/common/sign_temurin_jsf.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ stage('Signing SBOM') {
withCredentials([file(credentialsId: privateKey, variable: 'PRIVATE_KEY'), file(credentialsId: publicKey, variable: 'PUBLIC_KEY')]) {
// Sign SBOMS
sh '''
#!/bin/bash
set -eu
cd artifacts
for ARTIFACT in $(find . -name "*sbom*.json" | grep -v metadata.json); do
echo "Signing ${ARTIFACT}"
Expand Down

0 comments on commit 381ee19

Please sign in to comment.