How to archive artifacts of prowler output in jenkins #1447
-
I am running prowler using a jenkins pipeline script. Am running prowler in my infrastructure using docker . Am able to run prowler and my build got succeeded. I need to archive my prowler report. Is there any way to archive the artifact (prowler html report) , let me attach my pipeline script below,
I need something like this ,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hi @gitbhavesh07, four your use case you have to use these Prowler options to upload the findings to S3. -B Custom output bucket, requires -M <mode> and it can work also with -o flag.
(i.e.: -M csv -B my-bucket or -M csv -B my-bucket/folder/)
-D Same as -B but do not use the assumed role credentials to put objects to the bucket, instead uses the initial credentials. So you can replace your script with the following: script{
def exitCode = sh script: 'docker run --rm --name prowler --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY toniblyx/prowler:latest -f ap-south-1 -M html -B my-bucket/folder/', returnStatus: true
} Please, check it and let us know if it works for your use case. Thanks for using Prowler! |
Beta Was this translation helpful? Give feedback.
-
Hi @gitbhavesh07, as you can see here in the Prowler documentation, if you use the Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @gitbhavesh07, as you can see here in the Prowler documentation, if you use the
-M
option the reports generated for the output modes are stored in the./output
folder by default. So you can archive your artifacts this way.Thanks!