#17 Fix 'Build jenkins operator' job

This commit is contained in:
Tomasz Sęk 2019-06-02 19:55:55 +02:00
parent 51a49c9cd0
commit 6c0f94b50a
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
1 changed files with 11 additions and 1 deletions

View File

@ -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'