From 5e489cf67e1b5545c73624a472eaf8dfd2797165 Mon Sep 17 00:00:00 2001 From: Thibault <thibault@Thibault.home> Date: Wed, 17 Mar 2021 16:17:05 +0100 Subject: [PATCH] Essai registry --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f87366e..10835bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,8 @@ node{ def app - def registryProject='http://127.0.0.1:8083' def image="${registryProject}:version-${env.BUILD_ID}" + def registryProject='http://172.20.0.2:8083/repository/RegistryDocker/' + stage('Clone') { checkout scm @@ -33,9 +34,8 @@ node{ } stage('Push on repo nexus'){ - docker.withRegistry(registryProject,'reg2'){ - img.push 'latest' - img.push + docker.withRegistry(registryProject,'Jenkins-credential'){ + app.push() } } } -- GitLab