From 0a85053e15e8db8bdb62efe7ccf3bfbaac83a17c Mon Sep 17 00:00:00 2001 From: sido Date: Thu, 19 Jul 2018 23:40:57 +0200 Subject: [PATCH 1/2] fix(views): added key and index to loop through array --- molgenis-jenkins/Chart.yaml | 2 +- molgenis-jenkins/templates/config.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/molgenis-jenkins/Chart.yaml b/molgenis-jenkins/Chart.yaml index f352745..0fcd506 100755 --- a/molgenis-jenkins/Chart.yaml +++ b/molgenis-jenkins/Chart.yaml @@ -1,6 +1,6 @@ name: molgenis-jenkins home: https://jenkins.io/ -version: 0.6.1 +version: 0.6.2 appVersion: 2.121 description: Molgenis installation for the jenkins chart. sources: diff --git a/molgenis-jenkins/templates/config.tpl b/molgenis-jenkins/templates/config.tpl index 7cf094e..7e4a753 100644 --- a/molgenis-jenkins/templates/config.tpl +++ b/molgenis-jenkins/templates/config.tpl @@ -174,8 +174,8 @@ data: -{{- range $jobName, $job := $view.Jobs }} - $jobName +{{- range index, $job := .Jobs }} + $job {{- end }} From 4482ebef4b7c87d31cb703dec7edb0caf62bce44 Mon Sep 17 00:00:00 2001 From: sido Date: Thu, 19 Jul 2018 23:42:39 +0200 Subject: [PATCH 2/2] forgot dollar sign --- molgenis-jenkins/templates/config.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molgenis-jenkins/templates/config.tpl b/molgenis-jenkins/templates/config.tpl index 7e4a753..5bfd243 100644 --- a/molgenis-jenkins/templates/config.tpl +++ b/molgenis-jenkins/templates/config.tpl @@ -174,7 +174,7 @@ data: -{{- range index, $job := .Jobs }} +{{- range $index, $job := .Jobs }} $job {{- end }}