소스 검색

add snyk test

Benjamin Kornblum 5 달 전
부모
커밋
646ed48e2b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Jenkinsfile

+ 6 - 0
Jenkinsfile

@@ -28,6 +28,12 @@ node {
         }
     }
 
+    stage('Snyk Test') {
+        /* This stage runs Snyk to test the image for vulnerabilities.
+         * Make sure you have the Snyk plugin installed in Jenkins. */
+        snykSecurity test: 'hochzeit:latest', failOnError: true, failOnIssues: true, snykInstallation: 'snyk'
+    }
+
     stage('Push image') {
         /* Finally, we'll push the image with two tags:
          * First, the incremental build number from Jenkins