Commit c149895e authored by Ndoumbe's avatar Ndoumbe

Update Jenkinsfile

parent 0d0f01c1
......@@ -39,13 +39,12 @@ pipeline {
stage('Building docker image for tai and pushing it') {
steps {
script {
last_stage = env.STAGE_NAME
}
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 + ":$BUILD_NUMBER"
def image = docker.build registry
image.push()
}
}
......
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