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