Fix. Syntax when checking the vcluster status in the e2e testing 94/15694/2
authorcaviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Fri, 23 Jan 2026 10:19:40 +0000 (11:19 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 26 Jan 2026 11:02:49 +0000 (12:02 +0100)
Change-Id: I45e462b04cb14f4bcda20f22f54f5c52d753d0bf
Signed-off-by: caviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
jenkins/ci-pipelines/ci_e2e_tests.groovy

index c3c7d43..c65891d 100644 (file)
@@ -568,7 +568,7 @@ void create_vcluster(String dockerRegistryUrl, String tagName, String kubeconfig
                 entry: '/bin/sh',
                 envVars: envs,
                 mounts: mounts,
-                cmd: '''-c "vcluster list --output json | jq -r ".[] | select(.Name==\"''' + vclusterName + '''\") | .Status\"'''
+                cmd: """-c 'vcluster list --output json | jq -r ".[] | select(.Name==\\"${vclusterName}\\") | .Status"'"""
             ).trim()
         } catch (Exception e) {
             println("Polling command failed: ${e.message}. Will retry.")