From 7a3c49ed5d521116a0a6a2742b413262685ad4e5 Mon Sep 17 00:00:00 2001 From: jeanjerome Date: Mon, 21 Aug 2023 02:22:21 +0200 Subject: [PATCH] ref(15): Start testing wild integration with Jenkins --- vars/wildPipeline.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vars/wildPipeline.groovy b/vars/wildPipeline.groovy index d8dc664..12c14a7 100644 --- a/vars/wildPipeline.groovy +++ b/vars/wildPipeline.groovy @@ -55,9 +55,10 @@ def call() { ]) def appConfig = readYaml(file: "${wild_path}/config/k8s/containers-config.yaml") - def runContainerNames = ["bash", "maven"] + def runContainerNames = [] container("bash") { - runContainerNames = sh(script: ". ${wild_path}/src/lib/workflow.sh && workflow::_get_workflows_containers_names ${wild_path}/test/config/workflow-default.json", returnStdout: true) + sh(script: "source ${wild_path}/src/lib/workflow.sh", returnStatus: false) + runContainerNames = workflow::_get_workflows_containers_names "${wild_path}/test/config/workflow-default.json" } def runContainerConfig = containerConfig.getContainerConfig(appConfig, runContainerNames) k8s_containers_run = containerConfig.generateContainerTemplate(runContainerConfig)