From d3e041a6c0cdbd0f73b9504ba7d15c7b19098ea5 Mon Sep 17 00:00:00 2001
From: MOREY Thibault <thibault.morey3@etu.univ-lorraine.fr>
Date: Thu, 18 Feb 2021 10:28:55 +0000
Subject: [PATCH] Update Jenkinsfile

---
 Jenkinsfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index f6b4c10..9467094 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,6 +1,6 @@
 node{
     def app
-    def registryProject='127.0.0.1:8083'
+    def registryProject='http://127.0.0.1:8083'
     def image="${registryProject}:version-${env.BUILD_ID}"
 
         stage('Clone') {
@@ -17,7 +17,7 @@ node{
             sh 'docker ps'
         }
         stage('Push on repo nexus')
-            docker.withRegistry('127.0.0.1:8083','reg2'){
+            docker.withRegistry(registryProject,'reg2'){
                 img.push 'latest'
                 img.push
             } 
-- 
GitLab