Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Jenkinsfile-2
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
}
}
6 changes: 3 additions & 3 deletions Jenkinsfile-3
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { label 'linux' }
agent { label 'master' }
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
Expand All @@ -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'
}
}
}
}
}