This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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')
        ]
      ) {
      }

            Assignee:
            Carlos Sanchez
            Reporter:
            Hokwang Lee
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: