From d975ad9c4ad4ff164a54360b340f5ddfa17bb8d5 Mon Sep 17 00:00:00 2001
From: Athanasios Karmas <karmas@athenarc.gr>
Date: Mon, 26 Jul 2021 11:22:48 +0000
Subject: [PATCH] Final touches. Not using anymore SWIFT as intermediate,
 copying files directly from gitlab runner to the OpenShift job pod

---
 create_job.sh | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/create_job.sh b/create_job.sh
index d3d0dd73..5e2a9aa2 100644
--- a/create_job.sh
+++ b/create_job.sh
@@ -1,14 +1,8 @@
 #!/bin/bash
 
-#
-# https://docs.gitlab.com/13.12/ee/api/job_artifacts.html#get-job-artifacts
-# https://stackoverflow.com/questions/53837426/gitlab-how-can-i-programatically-download-the-artifacts-issued-at-end-of-ci-pip
-# url structure : GET /projects/:id/jobs/:job_id/artifacts
-#
-
 BUILD_ENV=$1
 OP=$2
-SWIFT_FILE=$3
+SPACK_ENV_TAR_FILE=$3
 OC_JOB_ID=$4
 
 cat <<EOT >> simplejob.yml
@@ -35,7 +29,7 @@ spec:
         volumeMounts:
           - name: sharedbin
             mountPath: /srv
-        command: ["/usr/local/bin/deploy-build-env.sh", "$BUILD_ENV", "$OP", "$SWIFT_FILE"]
+        command: ["/usr/local/bin/deploy-build-env.sh", "$BUILD_ENV", "$OP", "$SPACK_ENV_TAR_FILE"]
       volumes:
         - name: sharedbin
           persistentVolumeClaim:
-- 
GitLab