Skip to content
Prev Previous commit
Next Next commit
Jenkins added
  • Loading branch information
JAY24666 committed Oct 8, 2025
commit 91374f30e96ff79d779d0fc798e0ab7855ac07f3
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ pipeline{
}
stage("TRIVY"){
steps{
sh "trivy image nasi101/netflix:latest > trivyimage.txt"
sh '''
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
aquasec/trivy image nasi101/netflix:latest | tee trivy-image-scan.txt
'''

// sh "trivy image jay24666/netflix:latest > trivyimage.txt"
}
}
// stage('Deploy to container'){
Expand Down