From 6c0f94b50a10ddd2e48210df31f8e809300cf07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20S=C4=99k?= Date: Sun, 2 Jun 2019 19:55:55 +0200 Subject: [PATCH] #17 Fix 'Build jenkins operator' job --- cicd/pipelines/build.jenkins | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cicd/pipelines/build.jenkins b/cicd/pipelines/build.jenkins index dd9e4573..43090f8d 100644 --- a/cicd/pipelines/build.jenkins +++ b/cicd/pipelines/build.jenkins @@ -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'