#17 Fix 'Build jenkins operator' job
This commit is contained in:
parent
51a49c9cd0
commit
6c0f94b50a
|
|
@ -9,7 +9,11 @@ podTemplate(label: label,
|
|||
containers: [
|
||||
containerTemplate(name: 'jnlp', image: 'jenkins/jnlp-slave:alpine'),
|
||||
containerTemplate(name: 'go', image: 'golang:1-alpine', command: 'cat', ttyEnabled: true),
|
||||
]) {
|
||||
],
|
||||
envVars: [
|
||||
envVar(key: 'GOPATH', value: workspace),
|
||||
],
|
||||
) {
|
||||
|
||||
node(label) {
|
||||
dir(workdir) {
|
||||
|
|
@ -22,6 +26,12 @@ podTemplate(label: label,
|
|||
}
|
||||
}
|
||||
|
||||
stage('Dep') {
|
||||
container('go') {
|
||||
sh 'make dep'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
container('go') {
|
||||
sh 'make test'
|
||||
|
|
|
|||
Loading…
Reference in New Issue