Skip to content
Snippets Groups Projects
Commit 5991743a authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3075 add helm readme and change path

parent fbeb3d98
No related branches found
No related tags found
No related merge requests found
......@@ -192,16 +192,19 @@ pipeline {
FAILED_GOOFY_STAGE=env.STAGE_NAME
HELM_CHART_VERSION = generateHelmChartVersion()
sh "helm lint -f goofy-server/src/main/helm/test-values.yaml goofy-server/src/main/helm"
sh "helm unittest -f '../../test/helm/*.yaml' goofy-server/src/main/helm"
dir('src/main/helm') {
sh "helm lint -f test-values.yaml"
sh "helm package goofy-server/src/main/helm --version=${HELM_CHART_VERSION}"
sh "helm unittest -f '../../test/helm/*.yaml' ."
sh "helm package --version=${HELM_CHART_VERSION} ."
deployHelmChart(HELM_CHART_VERSION)
}
}
}
}
}
stage('Trigger Dev rollout') {
when {
......
......@@ -2,5 +2,5 @@ apiVersion: v1
appVersion: "1.1"
description: A Helm chart for Goofy
name: goofy
version: 0.20.0-SNAPSHOT
version: 0.0.0-MANAGED-BY-JENKINS
icon: https://simpleicons.org/icons/helm.svg
# Helm
## Linter
`helm lint -f test-values.yaml`
## Unit-Tests
Für Unit-Tests wird das helm [helm-unittest](https://github.com/quintush/helm-unittest) plugin benötigt. Die Unit-Tests liegen im Verzeichnis src/test/helm
`helm unittest -f '../../test/helm/*.yaml' .`
## SyntaxCheck
`helm template --debug -f test-values.yaml .`
## Package
`helm package --version=[version] .`
## Versionierung
Jenkins verwendet die Version aus der pom.xml
### Master Branch
Im master Branch werden die ersten 7 Zeichen vom git commit hash an die Version gehangen.
### Release Branch
Ist nur die Version aus der pom.xml
### Feature Branch
In einem feature Branch wird der Branchname an die Version gehangen.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment