Skip to content
Snippets Groups Projects
Commit 414c853e authored by MOREY Thibault's avatar MOREY Thibault
Browse files

Update Jenkinsfile

parent 50c89be6
No related branches found
No related tags found
No related merge requests found
node{ node{
def app def app
def registryProject='127.0.0.1:8083'
def image="${registryProject}:version-${env.BUILD_ID}"
stage('Clone') { stage('Clone') {
checkout scm checkout scm
...@@ -11,12 +13,14 @@ node{ ...@@ -11,12 +13,14 @@ node{
stage('Test image') { stage('Test image') {
docker.image('debian:buster').withRun('-p 81:81') { c -> docker.image('debian:buster').withRun('-p 81:81') { c ->
sh 'docker ps' sh 'docker ps'
} }
stage('Push on repo nexus') stage('Push on repo nexus')
docker push 127.0.0.1:8082/debian:buster docker.withRegistry('127.0.0.1:8083','reg1'){
img.push 'latest'
img.push
}
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment