From 16c636dc94fd6b22a721007903e707ab98485f66 Mon Sep 17 00:00:00 2001 From: brammie15 Date: Wed, 25 Mar 2026 22:14:03 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 58 ++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c05bde9..c05935a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,35 +30,35 @@ pipeline { } } - stage('SAST - Semgrep') { - steps { - sh """ - docker run --rm -v "\$(pwd):/src" \ - returntocorp/semgrep:latest \ - semgrep scan --config=auto --debug \ - --json --output /src/semgrep.json \ - /src/internal /src/cmd || true - - echo "After semgrep:" - ls -la - """ - } - } - - stage('Upload to DefectDojo') { - steps { - sh """ - curl -X POST "${DD_URL}/api/v2/import-scan/" \ - -H "Authorization: Token ${DD_API_KEY}" \ - -F "scan_type=Semgrep JSON Report" \ - -F "file=@\$(pwd)/semgrep.json" \ - -F "product_name=Sendit" \ - -F "engagement_name=Jenkins-CI" \ - -F "auto_create_context=true" \ - -F "close_old_findings=true" - """ - } - } +# stage('SAST - Semgrep') { +# steps { +# sh """ + # docker run --rm -v "\$(pwd):/src" \ + # returntocorp/semgrep:latest \ +# semgrep scan --config=auto --debug \ +# --json --output /src/semgrep.json \ +# /src/internal /src/cmd || true +# +# echo "After semgrep:" +# ls -la +# """ +# } +# } +# +# stage('Upload to DefectDojo') { +# steps { +# sh """ +# curl -X POST "${DD_URL}/api/v2/import-scan/" \ +# -H "Authorization: Token ${DD_API_KEY}" \ +# -F "scan_type=Semgrep JSON Report" \ +# -F "file=@\$(pwd)/semgrep.json" \ +# -F "product_name=Sendit" \ +# -F "engagement_name=Jenkins-CI" \ +# -F "auto_create_context=true" \ +# -F "close_old_findings=true" +# """ +# } +# } stage('Build image') { steps {