-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
26 lines (25 loc) · 927 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pipeline {
agent any
tools {
maven 'maven'
}
stages {
//stage ('Check-Git-Secrets') {
//steps {
//sh 'rm trufflehog || true'
// sh 'docker run gesellix/trufflehog --json https://github.com/sindhuhack/Devsecops.git > trufflehog'
// sh 'cat trufflehog'
// }
//}
stage ('Source Composition Analysis') {
steps {
sh 'rm owasp* || true'
sh 'wget "https://raw.githubusercontent.com/sindhuhack/github/master/owasp-dependency-check.sh" '
sh 'chmod +x owasp-dependency-check.sh'
sh 'bash owasp-dependency-check.sh'
//sh 'cat /var/lib/jenkins/OWASP-Dependency-Check/reports/dependency-check-report.xml'
publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, escapeUnderscores: false, keepAll: false, reportDir: 'report', reportFiles: 'index.html', reportName: 'HTML Report', reportTitles: ''])
}
}
}
}