def applyConfigMapEnv(Object SERVICE, Object K3S, String configMapPath='projdir/configmap-env') { configmap_env_name = "${SERVICE.name}${SERVICE.version}-env" configmap_env = 'coresvc-configmap-env.yaml' sh "/k3s/kubectl create configmap ${configmap_env_name} --dry-run=client --from-env-file=${configMapPath} -o yaml > ${configmap_env}" sh "/k3s/kubectl --kubeconfig ${env.WORKSPACE}/${K3S.kubeconfig} apply -f ${configmap_env}" } def applyConfigMap(Object SERVICE, Object K3S, String configMapPath = './configmap/') { configmap_name = "${SERVICE.name}${SERVICE.version}-config" configmap_file = "${SERVICE.name}-configmap.yaml" sh "/k3s/kubectl create configmap ${configmap_name} --dry-run=client --from-file=${configMapPath} -o yaml > ${configmap_file}" sh "/k3s/kubectl --kubeconfig ${env.WORKSPACE}/${K3S.kubeconfig} apply -f ${configmap_file}" } def applyDeployment(Object SERVICE, Object K3S, Object DOCKER, String release, String COMMIT_SHA, String base_branch, String args) { // NO configmap_file sh """cat > deployment.yml< deployment.yml<