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

ajout du pipeline pour une image existante

parent 74d73b75
No related branches found
No related tags found
No related merge requests found
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
'''
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment