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