From 28f93592fd0fbd0decdfb2eac28a061b63aa6b6e Mon Sep 17 00:00:00 2001 From: Mohammad Torkashvand <mohammad.torkashvand@geant.org> Date: Tue, 19 Sep 2023 15:19:35 +0200 Subject: [PATCH] add appEnvironmentVariables to jenkinsfile --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b15672bf7..89129b78b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,4 +11,12 @@ List<String> extraRecipients = ['erik.reid@geant.org'] // python versions (docker tags) to test against, must be explicit versions List<String> pythonTestVersions = ['3.11'] -SimplePythonBuild(name, extraRecipients, pythonTestVersions) +// Environment variables you want to pass +Map<String, String> appEnvironmentVariables = [ + 'USE_ISOLATED_DOCKER_COMPOSE': '1', + // add more as needed +] + +SimplePythonBuild(name, extraRecipients, pythonTestVersions, environmentVariables) +This assumes that your SimplePythonBuild function is set up to accept an additional environmentVariables parameter and can handle it accordingly. You would need to go into the actual function definition for SimplePythonBuild (which I assume is in +SimplePythonBuild(name, extraRecipients, pythonTestVersions, environmentVariables) -- GitLab