From 97f59243203e2596233dc01eb1480767f67a0289 Mon Sep 17 00:00:00 2001
From: Raphael Defosseux <raphael.defosseux@eurecom.fr>
Date: Wed, 21 Jul 2021 15:22:27 +0200
Subject: [PATCH] fix(ci): helm pipeline was not recovering SPGWU tag from
 upstream job

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
---
 ci-scripts/Jenkinsfile-GitLab-Helm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ci-scripts/Jenkinsfile-GitLab-Helm b/ci-scripts/Jenkinsfile-GitLab-Helm
index 15cab4dd..2714b2ed 100644
--- a/ci-scripts/Jenkinsfile-GitLab-Helm
+++ b/ci-scripts/Jenkinsfile-GitLab-Helm
@@ -148,6 +148,10 @@ pipeline {
                 smfTag = params.SMF_TAG
                 echo "Upstream Job passed SMF_TAG to use: ${smfTag}"
               }
+              if (params.SPGWU_TAG != null) {
+                spgwuTag = params.SPGWU_TAG
+                echo "Upstream Job passed SPGWU_TAG to use: ${spgwuTag}"
+              }
               sh "git clean -x -d -f > /dev/null 2>&1"
               sh "git fetch --prune > /dev/null 2>&1"
               sh 'git checkout -f ' + upstreamTagToUse
-- 
GitLab