Commit 1911bdb8 authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent 20c989c4
...@@ -10,7 +10,7 @@ pipeline { ...@@ -10,7 +10,7 @@ pipeline {
// test variable: 0=success, 1=fail; must be string // test variable: 0=success, 1=fail; must be string
doError = '0' doError = '0'
GIT_COMMIT_MSG = sh(returnStdout: true, script: "git log -1 --pretty=%B").trim() GIT_COMMIT_MSG = sh(returnStdout: true, script: "git log -1 --pretty=%B").trim()
registry = "ndiop/repo1:odoo-15.0" registry = "ndiop/odoo:15.0"
registryCredential = 'docker-hub-ndiop' registryCredential = 'docker-hub-ndiop'
} }
...@@ -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