From 1972e253f3fcad7ccff1d445978c009ecf8b6328 Mon Sep 17 00:00:00 2001 From: RolandBakunts Date: Tue, 17 Jan 2023 03:34:56 -0800 Subject: [PATCH] JenkinsFile docker configuration --- Jenkinsfile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fc331e13c..abf74cdc6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,15 +23,22 @@ pipeline { // } stage('docker') { steps { - app = docker.build("rolandgryddynamics/mr") - // sh 'docker build -t my/app .' - // sh 'docker tag my/app rolandgryddynamics/mr' + script { + sh 'docker version' + app = docker.build("rolandgryddynamics/mr") + // sh 'docker build -t my/app .' + + // sh 'docker tag my/app rolandgryddynamics/mr' + // sh 'docker tag push rolandgryddynamics/mr' + } } } stage('deploy to dockerhub') { steps { - docker.withRegistry("https://registry.hub.docker.com", "webserver_login") - app.push("latest") + script { + docker.withRegistry("https://registry.hub.docker.com", "webserver_login") + app.push("latest") + } } } }