From 17886f251769f68f6850ce312ffa03b4534ccd21 Mon Sep 17 00:00:00 2001
From: Scott Koranda <skoranda@gmail.com>
Date: Mon, 17 Aug 2020 14:54:07 -0500
Subject: [PATCH] Add logic to build the COmanage Registry cron container

Add logic to build the COmanage Registry cron container.
---
 Jenkinsfile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 3adc09c..4062c68 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -56,6 +56,15 @@ pipeline {
                                       "-f ./$image_dir/Dockerfile ./$image_dir"
                       def tap_image = docker.build("$image_to_build", "$build_arg")
                       tap_image.push("$tag")
+
+                      image_to_build = "$maintainer/$imagename-cron"
+                      image_dir = 'comanage-registry-cron'
+                      build_arg = '--no-cache ' +
+                                      "--build-arg COMANAGE_REGISTRY_VERSION=$version " + 
+                                      "--build-arg COMANAGE_REGISTRY_BASE_IMAGE_VERSION=1 " +
+                                      "-f ./$image_dir/Dockerfile ./$image_dir"
+                      def tap_image_cron = docker.build("$image_to_build", "$build_arg")
+                      tap_image_cron.push("$tag")
                    }
                }
             }