commit c7956cbbf2c071c6c21f645a0a7c6ce91494c99c parent 905a86f7c877df87c0b4703ef039f08a5b0d7463 Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Tue, 4 Jun 2024 17:05:51 +0200 feat(Jenkinsfile): use shared library Diffstat:
M | Jenkinsfile | | | 24 | ++---------------------- |
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile @@ -1,23 +1,3 @@ -pipeline { - agent { - docker { - label 'podman' - image 'ghcr.io/gitleaks/gitleaks:v8.18.2' - args '-u root --entrypoint=' - } - } +@Library('in0rdr-jenkins-lib@master') _ - stages { - stage('scan') { - steps { - sh ''' - gitleaks detect \ - --verbose --no-color --no-banner \ - --report-path gitleaks-report.json \ - ''' - sh 'ls' - archiveArtifacts artifacts: 'gitleaks-report.json', fingerprint: true - } - } - } -} +gitleaks()