Commit e76e36a3 authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent 4dae37ab
......@@ -42,7 +42,7 @@ pipeline {
steps {
sh 'docker build -t ndiop/repo1:odoo-15.0 .'
withCredentials([usernamePassword(credentialsId: 'docker-hub-ndiop', passwordVariable: 'Password', usernameVariable: 'Username')]) {
sh ('docker login -u ${env.Username} -p ${env.Password}')
sh ('docker login -u ${Username} -p ${Password}')
sh 'docker push ndiop/repo1:odoo-15.0'
}
......@@ -57,7 +57,7 @@ pipeline {
success {
slackSend channel: 'odoo-demo',
color: COLOR_MAP[currentBuild.currentResult],
message: "*${currentBuild.currentResult}:* JOB ${env.JOB_NAME} | BUILD N° = ${env.BUILD_NUMBER}\n Plus d'infos: ${env.BUILD_URL} \n Une nouvelle image est disponible pour le projet TAI sur l'environnement MASTER\n Message du commit : ${env.GIT_COMMIT_MSG} \n Lien du commit: https://gitlab.baamtu.com/root/tai/commit/${env.GIT_COMMIT} "
message: "*${currentBuild.currentResult}:* JOB ${env.JOB_NAME} | BUILD N° = ${env.BUILD_NUMBER}\n Plus d'infos: ${env.BUILD_URL} \n Une nouvelle image est disponible pour le projet odoo-demo sur l'environnement MASTER\n Message du commit : ${env.GIT_COMMIT_MSG} \n Lien du commit: https://gitlab.baamtu.com/root/tai/commit/${env.GIT_COMMIT} "
}
failure {
slackSend channel: 'odoo-demo',
......
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