Commit e07ff832 authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

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