Commit 5e489cf6 authored by Thibault's avatar Thibault
Browse files

Essai registry

parent e6f3a44d
node{ node{
def app def app
def registryProject='http://127.0.0.1:8083'
def image="${registryProject}:version-${env.BUILD_ID}" def image="${registryProject}:version-${env.BUILD_ID}"
def registryProject='http://172.20.0.2:8083/repository/RegistryDocker/'
stage('Clone') { stage('Clone') {
checkout scm checkout scm
...@@ -33,9 +34,8 @@ node{ ...@@ -33,9 +34,8 @@ node{
} }
stage('Push on repo nexus'){ stage('Push on repo nexus'){
docker.withRegistry(registryProject,'reg2'){ docker.withRegistry(registryProject,'Jenkins-credential'){
img.push 'latest' app.push()
img.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