From 22a53eca6dfc0db8f44456a7d626cac845bae174 Mon Sep 17 00:00:00 2001 From: sido Date: Fri, 29 Jun 2018 23:02:57 +0200 Subject: [PATCH] added jenkins secret --- .../templates/molgenis-nexus-secret.yaml | 16 ++++++++++++++++ molgenis-jenkins/values.yaml | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 molgenis-jenkins/templates/molgenis-nexus-secret.yaml diff --git a/molgenis-jenkins/templates/molgenis-nexus-secret.yaml b/molgenis-jenkins/templates/molgenis-nexus-secret.yaml new file mode 100644 index 0000000..71870ec --- /dev/null +++ b/molgenis-jenkins/templates/molgenis-nexus-secret.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Secret +metadata: +# this is the jenkins id. + name: "molgenis-nexus-secret" + labels: +# so we know what type it is. + "jenkins.io/credentials-type": "usernamePassword" + annotations: { +# description - can not be a label as spaces are not allowed + "jenkins.io/credentials-description" : "user to authenticate against NEXUS" + } +type: Opaque +data: + username: {{ "admin" | b64enc | quote }} + password: {{ .Values.PipelineSecrets.Env.NexusPassword | b64enc | quote }} \ No newline at end of file diff --git a/molgenis-jenkins/values.yaml b/molgenis-jenkins/values.yaml index 7d054ad..ec5eb37 100644 --- a/molgenis-jenkins/values.yaml +++ b/molgenis-jenkins/values.yaml @@ -166,6 +166,8 @@ PipelineSecrets: GitHubToken: xxxx # Token for sonarcloud.io SonarToken: xxxx + # Password Local NEXUS + NexusPassword: xxxx File: # Set to false to keep existing secret Replace: true