DB
String podTpl = """
apiVersion: "v1"
kind: "Pod"
spec:
securityContext:
runAsUser: 1000
containers:
- name: "main"
image: "alpine:latest"
command:
- "cat"
securityContext:
privileged: false
tty: true
"""
podTemplate(
yaml: podTpl,
showRawYaml: true
) {
node(POD_LABEL) {
container('main') {
sh 'env'
}
}
}
и проверяй из джобы