From 2a0a9015dfcadb53362b8426290d76be2e70888b Mon Sep 17 00:00:00 2001 From: Fleur Kelpin Date: Thu, 19 Jul 2018 22:35:53 +0200 Subject: [PATCH] fix(jenkins): Make container working dir configurable --- molgenis-jenkins/templates/config.tpl | 2 +- molgenis-jenkins/values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/molgenis-jenkins/templates/config.tpl b/molgenis-jenkins/templates/config.tpl index c9df274..cc10115 100644 --- a/molgenis-jenkins/templates/config.tpl +++ b/molgenis-jenkins/templates/config.tpl @@ -143,7 +143,7 @@ data: {{- else }} false {{- end }} - /home/jenkins + {{ .WorkingDir | default "" }} {{ .Command | default "" }} {{ .Args | default "" }} {{- if .TTY }} diff --git a/molgenis-jenkins/values.yaml b/molgenis-jenkins/values.yaml index 9149598..0f87ccc 100644 --- a/molgenis-jenkins/values.yaml +++ b/molgenis-jenkins/values.yaml @@ -210,6 +210,7 @@ jenkins: maven: Image: "registry.webhosting.rug.nl/molgenis/maven" Command: cat + WorkingDir: /home/jenkins TTY: true resources: requests: @@ -218,11 +219,13 @@ jenkins: alpine: Image: "spotify/alpine" Command: cat + WorkingDir: /home/jenkins TTY: true node: Image: "node" ImageTag: "9.11.2" Command: cat + WorkingDir: /home/jenkins TTY: true EnvVars: - type: Secret