Commit 20c989c4 authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent c31a82cb
...@@ -40,7 +40,7 @@ pipeline { ...@@ -40,7 +40,7 @@ pipeline {
stage('Building docker image odoo-demo and pushing'){ stage('Building docker image odoo-demo and pushing'){
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