From 15f93b698e4f326ebc5c42eb677794e93c062d7d Mon Sep 17 00:00:00 2001 From: Rithin-QB Date: Wed, 22 May 2024 15:19:51 +0530 Subject: [PATCH] add dockerImage build --- jenkins-shared-lib/vars/buildDockerImage.groovy | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 jenkins-shared-lib/vars/buildDockerImage.groovy diff --git a/jenkins-shared-lib/vars/buildDockerImage.groovy b/jenkins-shared-lib/vars/buildDockerImage.groovy new file mode 100644 index 0000000..52401da --- /dev/null +++ b/jenkins-shared-lib/vars/buildDockerImage.groovy @@ -0,0 +1,3 @@ +def call(String dockerfilePath, String imageName, String imageTag) { + sh "docker build -t ${imageName}:${imageTag} -f ${dockerfilePath} ." +} \ No newline at end of file