Commit e07ff832 authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent d6b71856
...@@ -37,23 +37,25 @@ pipeline { ...@@ -37,23 +37,25 @@ pipeline {
} }
} }
stage('Building docker image for tai and pushing it') {
steps { stage('Building image') {
ws("$WORKSPACE" + '/tai_build/') { steps{
script { script {
withCredentials([usernamePassword(credentialsId: 'docker-hub-ndiop', passwordVariable: 'Password', usernameVariable: 'Username')]) { dockerImage = docker.build registry
sh ('docker login -u ${env.Username} -p ${env.Password}') }
docker.withRegistry('', 'docker-hub-ndiop') { }
def image = docker.build registry }
image.push() stage('push Image') {
} steps{
} script {
} docker.withRegistry( '', docker-hub-ndiop ) {
} dockerImage.push()
} }
}
} }
}
} }
// Post-build actions // Post-build actions
post { post {
......
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