Commit 6a662b1f authored by MOREY Thibault's avatar MOREY Thibault
Browse files

Update Jenkinsfile

parent e61b8922
......@@ -20,6 +20,7 @@ node{
sh 'docker ps'
}
}
stage('Scan Dockle'){
sh 'dockle debian:buster > rapportDockle'
}
......@@ -32,7 +33,7 @@ node{
sleep 1
DOCKER_GATEWAY=$(docker network inspect bridge --format "{{range .IPAM.Config}}{{.Gateway}}{{end}}")
wget -qO clair-scanner https://github.com/arminc/clair-scanner/releases/download/v8/clair-scanner_linux_amd64 && chmod +x clair-scanner
./clair-scanner --ip="http://172.17.0.1" debian:buster || exit 0
./clair-scanner --ip="http://172.17.0.1" -c 127.0.0.1 debian:buster || exit 0
'''
}
stage('Delete moi tous la dedans jveux plus rien reconnaitre'){
......@@ -41,11 +42,10 @@ node{
sh 'docker rm db'
sh 'docker rm clair'
}
stage('Push on repo nexus')
stage('Push on repo nexus'){
docker.withRegistry(registryProject,'reg2'){
img.push 'latest'
img.push
}
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment