| Hello. I can use scripted pipeline with imagepullsecrets and volumes like below, but in declaritive pipeline, I can't use it.
podTemplate(
label: 'mypod',
imagePullSecrets: [ 'regcred' ],
containers: [
containerTemplate(name: 'test', image: '1.2.3.4/ubuntu_14.04_w_c', ttyEnabled: true, command: 'cat')
],
volumes: [
hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock')
]
) {
}
|