diff --git a/Jenkinsfile b/Jenkinsfile index 51979cb..5206028 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,13 @@ pipeline { environment { - registry = 'jcabillot/jenkins-wdocker' + registry = 'https://registry.hub.docker.com' registryCredential = 'dockerhub_jcabillot' - dockerImage = '' + dockerImage = 'jcabillot/jenkins-wdocker' } - agent any - stages { stage('Clone repository') { steps{ - /* Let's make sure we have the repository cloned to our workspace */ checkout scm } } @@ -24,7 +21,7 @@ pipeline { stage('Deploy Image') { steps{ script { - withDockerRegistry(url: 'https://registry.hub.docker.com', credentialsId: 'docker-hub-credentials') { + withDockerRegistry(url: 'https://registry.hub.docker.com', credentialsId: 'dockerhub_jcabillot') { sh 'docker push jcabillot/jenkins-wdocker' } }