From bcd9f66a4152d143e70f9691caded9fc4ddb4735 Mon Sep 17 00:00:00 2001 From: RolandBakunts Date: Tue, 17 Jan 2023 03:14:32 -0800 Subject: [PATCH] JenkinsFile docker configuration --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 39d5f2b6b..f33eb077f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,8 +22,8 @@ pipeline { // } // } stage('docker') { - script { - steps { + steps { + script { app = docker.build("rolandgryddynamics/mr") // sh 'docker build -t my/app .' sh 'ls -a' @@ -34,8 +34,8 @@ pipeline { } } stage('deploy to dockerhub') { - script { - steps { + steps { + script { docker.withRegistry("https://registry.hub.docker.com", "webserver_login") app.push("latest") }