forgot to save that file

This commit is contained in:
2025-05-28 10:26:46 +03:00
parent 8d289d207b
commit 6bf2b7aa2a
3 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import com.example.DockerBuilder
def call(String appName, String helmChartPath, String helmRepoName,String helmChartVersion, Boolean useCustomDocker, Boolean useInsecureRegistry, Integer appPort) {
def call(String appName, String helmChartPath, String helmRepoName, String namespace, String helmChartVersion, Boolean useCustomDocker, Boolean useInsecureRegistry, Integer appPort) {
def dockerBuilder = new DockerBuilder()
def containerName = useCustomDocker ? 'custom-docker' : 'docker'
@@ -48,6 +48,7 @@ def call(String appName, String helmChartPath, String helmRepoName,String helmCh
appName,
helmRepoName,
appName,
namespace,
helmChartVersion,
env.KUBERNETES_API,
env.KUBERNETES_TOKEN,

View File

@@ -1,6 +1,6 @@
def call(String releaseName, String chartRepo, String chartName, String version, String kubeApi, String kubeToken, Map values = [:]) {
def call(String releaseName, String chartRepo, String chartName, String namespace, String version, String kubeApi, String kubeToken, Map values = [:]) {
container('helm') {
def helmCommand = "helm install ${releaseName} ${chartRepo}/${chartName} --version ${version} --kube-apiserver ${kubeApi} --kube-token ${kubeToken} --kube-insecure-skip-tls-verify"
def helmCommand = "helm install ${releaseName} ${chartRepo}/${chartName} --namespace ${namespace} --version ${version} --kube-apiserver ${kubeApi} --kube-token ${kubeToken} --kube-insecure-skip-tls-verify"
values.each { key, value ->
helmCommand += " --set ${key}=${value}"

View File

@@ -29,7 +29,7 @@ def call(String projectName, Map config) {
stage('Build and Deploy') {
steps {
script {
buildAndDeploy(projectName, config.helmChart, config.helmRepo, config.version, config.useCustomDocker, config.useInsecureRegistry, config.port)
buildAndDeploy(projectName, config.helmChart, config.helmRepo, config.namespace, config.version, config.useCustomDocker, config.useInsecureRegistry, config.port)
}
}
}