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.