Hi Team,
I am getting an error while running the Jenkins file tp build and push the docker image into docker hub .
you can reveiw my code github : https://github.com/iakshaykr/webapp.git (using jenkins_pipe branch not master branch )
Jenkinsfile :
pipeline {
environment {
registry= "iakshaykr/webapp"
registryCredential= 'dockerhub'
}
agent { dockerfile true }
stages {
stage('Bilding image') {
steps {
script {
docker.build registry + ":$BUILD_NUMBER"
}
}
}
}
}