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

Update Jenkinsfile

parent 50c89be6
Branches
No related tags found
No related merge requests found
node{
def app
def registryProject='127.0.0.1:8083'
def image="${registryProject}:version-${env.BUILD_ID}"
stage('Clone') {
checkout scm
......@@ -11,12 +13,14 @@ node{
stage('Test image') {
docker.image('debian:buster').withRun('-p 81:81') { c ->
sh 'docker ps'
}
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