Commit 563dbd9b authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent 0fedb4ed
...@@ -39,11 +39,12 @@ pipeline { ...@@ -39,11 +39,12 @@ pipeline {
stage('Building docker image odoo-demo and pushing'){ stage('Building docker image odoo-demo and pushing'){
agent any
steps { steps {
sh 'docker build -t ndiop/repo1:odoo-15.0 .' sh 'docker build -t ndiop/repo1:odoo-15.0 .'
withCredentials([usernamePassword(credentialsId: 'docker-hub-ndiop', passwordVariable: 'Password', usernameVariable: 'Username')]) { withCredentials([usernamePassword(credentialsId: 'docker-hub-ndiop', passwordVariable: 'Password', usernameVariable: 'Username')]) {
sh ('docker login -u ${env.Username} -p ${env.Password}') sh ('docker login -u ${env.Username} -p ${env.Password}')
sh 'docker push ndiop/repo1:odoo-15.0' sh 'docker push ndiop/repo1:odoo-15.0'
} }
} }
......
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