Skip to content
Snippets Groups Projects
Commit 6a662b1f authored by MOREY Thibault's avatar MOREY Thibault
Browse files

Update Jenkinsfile

parent e61b8922
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ node{ ...@@ -20,6 +20,7 @@ node{
sh 'docker ps' sh 'docker ps'
} }
}
stage('Scan Dockle'){ stage('Scan Dockle'){
sh 'dockle debian:buster > rapportDockle' sh 'dockle debian:buster > rapportDockle'
} }
...@@ -32,7 +33,7 @@ node{ ...@@ -32,7 +33,7 @@ node{
sleep 1 sleep 1
DOCKER_GATEWAY=$(docker network inspect bridge --format "{{range .IPAM.Config}}{{.Gateway}}{{end}}") 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 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'){ stage('Delete moi tous la dedans jveux plus rien reconnaitre'){
...@@ -41,11 +42,10 @@ node{ ...@@ -41,11 +42,10 @@ node{
sh 'docker rm db' sh 'docker rm db'
sh 'docker rm clair' sh 'docker rm clair'
} }
stage('Push on repo nexus') stage('Push on repo nexus'){
docker.withRegistry(registryProject,'reg2'){ docker.withRegistry(registryProject,'reg2'){
img.push 'latest' img.push 'latest'
img.push img.push
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment