From 6a662b1ff9d19eda9fb57a39bd492e5b7eaf8607 Mon Sep 17 00:00:00 2001 From: MOREY Thibault <thibault.morey3@etu.univ-lorraine.fr> Date: Fri, 19 Feb 2021 14:54:05 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 05b66b4..39de65a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 +} -- GitLab