Commit 06360f22 authored by Thibault's avatar Thibault
Browse files

correction d'erreur

parent e8019034
node{ node{
def app def app
def registryProject='http://172.20.0.2:8083/repository/RegistryDocker/'
def image="${registryProject}:version-${env.BUILD_ID}" def image="${registryProject}:version-${env.BUILD_ID}"
stage('Clone') { stage('Clone') {
checkout scm checkout scm
...@@ -20,7 +23,6 @@ node{ ...@@ -20,7 +23,6 @@ node{
sh 'docker ps' sh 'docker ps'
} }
} }
stage('Scan Dockle'){ stage('Scan Dockle'){
sh 'dockle debian:buster > rapportDockle' sh 'dockle debian:buster > rapportDockle'
} }
...@@ -33,8 +35,8 @@ node{ ...@@ -33,8 +35,8 @@ node{
} }
stage('Push on repo nexus'){ stage('Push on repo nexus'){
docker.withRegistry('http://172.20.0.2:8083/repository/RegistryDocker/','Jenkins-credential'){ docker.withRegistry(registryProject,''){
app.push() app.push ()
} }
} }
} }
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