Skip to content
Snippets Groups Projects
Commit fd5da440 authored by Thibault's avatar Thibault
Browse files

essai clair scanner

parent 937e3408
No related branches found
No related tags found
Loading
...@@ -26,17 +26,10 @@ node{ ...@@ -26,17 +26,10 @@ node{
} }
stage('Scan Clair'){ stage('Scan Clair'){
sh sh '''
'''
wget -qO clair-scanner https://github.com/arminc/clair-scanner/releases/download/v8/clair-scanner_linux_amd64 && chmod +x clair-scanner
./clair-scanner --report="rapportClair" --ip="172.20.0.4" --clair="http://172.20.0.6:6060" debian:buster || exit 0 ./clair-scanner --report="rapportClair" --ip="172.20.0.4" --clair="http://172.20.0.6:6060" debian:buster || exit 0
''' '''
} }
stage('Push on repo nexus'){
docker.withRegistry(registryProject,'reg2'){
img.push 'latest'
img.push
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment