Jenkins setup: We have Setup Jenkins using Helm , we are using Jcasc for Creating Jobs.
Currently im passing env variables from DSL Files which gets reffered in Jenkinsfile as below
environmentVariables {
env('CLUSTER', 'AmStackEuPreprod01GreenEksCluster')
env('CHART_VERSION', '1.7.1')
}
}
But i also want to pass my Builder Name cd-k8s-1-29-builder from jenkins DSL File ,is this possible?
pipeline {
agent {
kubernetes {
inheritFrom 'cd-k8s-1-29-builder'
defaultContainer 'builder'
}
}
environment {
KUBECONFIG_PATH = "${WORKSPACE}/${CLUSTER}"