From 7e4296a43b776031e604123fbf8b4169378af7b7 Mon Sep 17 00:00:00 2001 From: Atharva Rane Date: Thu, 7 Dec 2023 17:59:48 -0500 Subject: [PATCH] add gen3 setup --- jenkins-jobs-scripts/step10/check_ecr_image.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jenkins-jobs-scripts/step10/check_ecr_image.py b/jenkins-jobs-scripts/step10/check_ecr_image.py index 26d2e57..1b46327 100644 --- a/jenkins-jobs-scripts/step10/check_ecr_image.py +++ b/jenkins-jobs-scripts/step10/check_ecr_image.py @@ -5,6 +5,11 @@ release = os.environ.get("RELEASE_VERSION") failed_list = [] +subprocess.run(['git', 'clone', 'https://github.com/uc-cdis/cloud-automation.git']) + +# Source gen3setup.sh script +subprocess.run(['source', './cloud-automation/gen3/gen3setup.sh'], shell=True, executable='/bin/bash') + # ecr = boto3.client('ecr') def get_ecr_image(services): @@ -22,7 +27,7 @@ def get_ecr_image(services): failed_list.append(services) # try: # response = ecr.describe_images( - # repositoryName='gen3/{services}', ## cant accept / only accepts - or _ + # repositoryName='gen3/{services}', ## cant accept '/' only accepts '-' or '_' # imageIds=[{'imageTag': release}] # ) # image_info = response['imageDetails'][0]