Skip to content
Snippets Groups Projects
Commit 70f2f626 authored by Thibault's avatar Thibault
Browse files

pushin registry

parent 5e489cf6
No related branches found
No related tags found
No related merge requests found
node{ node{
def app def app
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
} }
...@@ -34,7 +32,7 @@ node{ ...@@ -34,7 +32,7 @@ node{
} }
stage('Push on repo nexus'){ stage('Push on repo nexus'){
docker.withRegistry(registryProject,'Jenkins-credential'){ docker.withRegistry('http://172.20.0.2:8083/repository/RegistryDocker/','Jenkins-credential'){
app.push() app.push()
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment