From 33238a824665dad44efdd998b0b3bb981082c0f9 Mon Sep 17 00:00:00 2001 From: MOREY Thibault <thibault.morey3@etu.univ-lorraine.fr> Date: Fri, 19 Feb 2021 09:53:46 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3ea87cc..d4ebd99 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,13 +16,17 @@ node{ } stage('Test image') { - docker.image('debian:buster').withRun('-p 81:81') { c -> + docker.image('debian:buster').withRun() { c -> sh 'docker ps' } - stage(' Scan Dockle'){ + stage('Scan Dockle'){ sh 'dockle debian:buster > rapportDockle' } + + stage('Scan Clair '){ + sh './clair-scanner --ip localhost debian:buster' + } stage('Push on repo nexus') docker.withRegistry(registryProject,'reg2'){ img.push 'latest' -- GitLab