#17 Fix 'Build jenkins operator' job

This commit is contained in:
Tomasz Sęk
2019-06-02 19:56:31 +02:00
parent 51a49c9cd0
commit 6c0f94b50a
+11 -1
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'