This commit is contained in:
2025-12-10 15:52:41 +00:00
parent 4e8b60f77c
commit 6e9fbe44c4

25
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,25 @@
pipeline {
agent any
stages {
stage('Security Scan') {
steps {
withCredentials([string(credentialsId: 'nvd-api-key', variable: 'NVD_API_KEY')]) {
// Run OWASP Dependency Check using the specific installation configured in Jenkins
// Using NVD API Key to avoid rate limiting
dependencyCheck additionalArguments: "--scan ./ --format ALL --nvdApiKey ${NVD_API_KEY}", odcInstallation: 'depcheck'
}
}
}
}
post {
always {
// Publish the results
dependencyCheckPublisher pattern: 'dependency-check-report.xml'
// Archive the reports
archiveArtifacts allowEmptyArchive: true, artifacts: 'dependency-check-report.html'
}
}
}