update
Some checks failed
dongho-repo/security-web/pipeline/head There was a failure building this commit
Some checks failed
dongho-repo/security-web/pipeline/head There was a failure building this commit
This commit is contained in:
23
Jenkinsfile
vendored
Normal file
23
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Security Scan') {
|
||||||
|
steps {
|
||||||
|
// Run OWASP Dependency Check
|
||||||
|
// 'depcheck' matches the tool name configured in Jenkins Global Tool Configuration
|
||||||
|
dependencyCheck additionalArguments: '--scan ./ --format ALL', odcInstallation: 'depcheck'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
// Publish the results
|
||||||
|
dependencyCheckPublisher pattern: 'dependency-check-report.xml'
|
||||||
|
|
||||||
|
// Archive the reports so they can be viewed in Jenkins UI
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'dependency-check-report.html'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user