diff --git a/Jenkinsfile-2 b/Jenkinsfile-2 index f09566b1..6b169443 100644 --- a/Jenkinsfile-2 +++ b/Jenkinsfile-2 @@ -11,8 +11,8 @@ pipeline { } stage('Scan') { steps { - sh 'trivy --no-progress --exit-code 1 --severity HIGH,CRITICAL darinpope/java-web-app:latest' + sh 'trivy image --no-progress --exit-code 1 --severity HIGH,CRITICAL darinpope/java-web-app:latest' } } } -} \ No newline at end of file +} diff --git a/Jenkinsfile-3 b/Jenkinsfile-3 index 14141a00..de0ae46c 100644 --- a/Jenkinsfile-3 +++ b/Jenkinsfile-3 @@ -1,5 +1,5 @@ pipeline { - agent { label 'linux' } + agent { label 'master' } options { buildDiscarder(logRotator(numToKeepStr: '5')) } @@ -11,8 +11,8 @@ pipeline { } stage('Scan') { steps { - sh 'trivy --no-progress --exit-code 1 --severity MEDIUM,HIGH,CRITICAL darinpope/java-web-app:latest' + sh 'trivy image --no-progress --exit-code 1 --severity MEDIUM,HIGH,CRITICAL darinpope/java-web-app:latest' } } } -} \ No newline at end of file +}