Only scan when there is a new build
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -39,6 +39,11 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('Security scan') {
|
||||
when {
|
||||
expression {
|
||||
return params.Build == true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh "docker kill sectest || true"
|
||||
sh "docker rm sectest || true"
|
||||
|
Reference in New Issue
Block a user