From b166db12a427ef53d7d03fc4c3952618121fed3f Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Tue, 25 Jun 2019 18:23:22 -0400 Subject: [PATCH] test --- Jenkinsfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e775463..51979cb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,18 +17,16 @@ pipeline { stage('Build image') { steps{ - /* This builds the actual image; synonymous to - * docker build on the command line */ - app = docker.build("jcabillot/jenkins-wdocker") + sh "docker build -t jcabillot/jenkins-wdocker ." } } stage('Deploy Image') { steps{ script { - docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') { - app.push("latest") - } + withDockerRegistry(url: 'https://registry.hub.docker.com', credentialsId: 'docker-hub-credentials') { + sh 'docker push jcabillot/jenkins-wdocker' + } } } }