Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59909

Easier setup of Windows pods

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • kubernetes-plugin

      Rather than having to specify

      podTemplate(yaml: '''
      apiVersion: v1
      kind: Pod
      spec:
        containers:
        - name: jnlp
          image: jenkins/jnlp-agent:latest-windows
        nodeSelector:
          beta.kubernetes.io/os: windows
      ''') {...}
      

      you ought to be able to say just

      podTemplate(windows: true) {...}
      

      with the nodeSelector and alternate image selected automatically.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: