| We have same problem, but in our case we don't have readTrusted But we are using kubernetes with kubernetes-plugin, and we were using yaml file for pod configuration
agent {
kubernetes {
yamlFile "pod.yaml"
}
}
seems that underhood it calls readTrusted we tried to use
agent {
kubernetes {
yaml readFile("./pod.yaml")
}
}
but this also didn't work only inline pod yaml helped to solve this issue
agent {
kubernetes {
yaml """
apiVersion: v1
kind: Pod
spec:
containers:
- name: jnlp
image: imagename
imagePullPolicy: Always
"""
}
}
|