diff --git a/Jenkinsfile b/Jenkinsfile index f87366edfcacf2535efa17fe42013757f5d18f05..10835bb601071c4553a2b72ea97b9bf1ef1570cf 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() } } }