1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 脚本是按照教程的脚本部署 去创建pod pipeline { agent { kubernetes { //inheritFrom 'mypod' yaml '' ' apiVersion: v1 kind: Pod spec: containers: - name: maven image: maven:alpine command: - cat tty: true - name: golang image: golang: 1.16 . 5 command: - sleep args: - 99d '' ' retries 2 } } stages { stage( '' ) { steps { container( 'maven' ) { sh 'touch a.txt' } } } stage( 'Run golang' ) { steps { container( 'golang' ) { sh 'ls;pwd' } } } } } |
但是出现 jnlp 的错误