Skip to content

Commit

Permalink
comment and add rest of them
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Aug 7, 2024
1 parent b0b31ed commit 3353cb9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/jenkins/jenkinsfiles/Jenkinsfile-PrismaScan
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ def setScanningStages(assemblyType, stageIndex) {
stage ("${stageIndex}.B. Scan ${assemblyType} jar using Trivy") {
script {
sh "./trivy image ${assemblyImage} --output ${assemblyImage}-trivy.out"
// Replace special characters with * in order to show it directly in browser
sh """
sed -i 's/─/*/g' ${assemblyImage}-trivy.out
sed -i 's/│/*/g' ${assemblyImage}-trivy.out
sed -i 's/┤/*/g' ${assemblyImage}-trivy.out
sed -i 's/├/*/g' ${assemblyImage}-trivy.out
sed -i 's/┼/*/g' ${assemblyImage}-trivy.out
sed -i 's/┐/*/g' ${assemblyImage}-trivy.out
sed -i 's/┌/*/g' ${assemblyImage}-trivy.out
sed -i 's/└/*/g' ${assemblyImage}-trivy.out
sed -i 's/┘/*/g' ${assemblyImage}-trivy.out
sed -i 's/┬/*/g' ${assemblyImage}-trivy.out
sed -i 's/┴/*/g' ${assemblyImage}-trivy.out
"""
}
archiveArtifacts artifacts: "${assemblyImage}-trivy.out"
Expand Down

0 comments on commit 3353cb9

Please sign in to comment.