This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -1,19 +1,10 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
// Explicitly define the tool to ensure it is available on the path.
|
|
||||||
// The symbol 'dependency-check' usually corresponds to the OWASP Dependency-Check plugin tool type.
|
|
||||||
tools {
|
|
||||||
'dependency-check' 'depcheck'
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Security Scan') {
|
stage('Security Scan') {
|
||||||
steps {
|
steps {
|
||||||
// Debug: Verify the tool is available and print version
|
// Run OWASP Dependency Check using the specific installation configured in Jenkins
|
||||||
sh 'dependency-check.sh --version || echo "WARNING: dependency-check.sh not found in PATH"'
|
|
||||||
|
|
||||||
// Run OWASP Dependency Check using the specific installation
|
|
||||||
dependencyCheck additionalArguments: '--scan ./ --format ALL', odcInstallation: 'depcheck'
|
dependencyCheck additionalArguments: '--scan ./ --format ALL', odcInstallation: 'depcheck'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user