From 669f4a5f4e423488a8b8b109ae69457fc83ba187 Mon Sep 17 00:00:00 2001 From: Thibault <thibault@Thibault.home> Date: Wed, 17 Mar 2021 23:22:47 +0100 Subject: [PATCH] Pushing on repo --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bc5ec8e..4744367 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ node{ def app - def registryProject='http://127.0.0.1:8083' + def registryProject='http://172.20.0.2:8083/repository/RegistryDocker/' def image="${registryProject}:version-${env.BUILD_ID}" stage('Clone') { @@ -30,6 +30,12 @@ node{ ./clair-scanner --report="rapportClair" --ip="172.20.0.5" --clair="http://172.20.0.6:6060" debian:buster || exit 0 ''' } - + stage('Push on repo nexus'){ + docker.withRegistry(registryProject,'Jenkins-credential'){ + app.push() + } + } + + } -- GitLab