Commit 22c2b8eb authored by Thibault's avatar Thibault
Browse files

ajout du pipeline pour une image existante

parent 74d73b75
node{
def app
def registryProject='http://registry-nexus:8083/repository/RegistryDocker/'
def image="${registryProject}:version-${env.BUILD_ID}"
stage('Clone') {
checkout scm
}
stage('Build image') {
app = docker.build ("debian:buster")
}
stage('Test image') {
docker.image('debian:buster').withRun() { c ->
sh 'docker ps'
}
}
stage('Scan Dockle'){
sh 'dockle debian:buster > rapportDockleEx'
}
stage('Scan Clair'){
sh '''
./clair-scanner --report="rapportClairEx" --ip=jenkins-blueocean --clair="http://clair-local-scan:6060" debian:buster || exit 0
'''
}
}
Markdown is supported
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