summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2018-03-22 07:47:48 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-22 07:47:48 +0000
commitc0350ec7f81560fb2c3d31c7ef1246bce809ddf8 (patch)
tree7325fbfecd9c4be7c86953ad94ff66399d45d24c
parent5de13b0137fb1328543007b91ff87a9c039716f3 (diff)
parent85b44e87880d483e9b7106f3031a47d0be5b8800 (diff)
Merge "Adding support to use golang jenkins plugin"
-rw-r--r--jjb/global-macros.yaml9
-rw-r--r--jjb/global-templates-golang.yaml11
2 files changed, 12 insertions, 8 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index cf3409434..6be0e0f94 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -429,6 +429,15 @@
fail: true
- wrapper:
+ name: golang
+ wrappers:
+ - raw:
+ xml: |
+ <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
+ <goVersion>Golang 1.10</goVersion>
+ </org.jenkinsci.plugins.golang.GolangBuildWrapper>
+
+- wrapper:
# This wrapper is required for all jobs as it configures the wrappers
# needed by the eCOMP infra.
name: infra-wrappers
diff --git a/jjb/global-templates-golang.yaml b/jjb/global-templates-golang.yaml
index 168fb6203..1558c65f3 100644
--- a/jjb/global-templates-golang.yaml
+++ b/jjb/global-templates-golang.yaml
@@ -33,6 +33,7 @@
submodule-recursive: '{submodule-recursive}'
wrappers:
+ - golang
- infra-wrappers:
build-timeout: '{build-timeout}'
@@ -49,10 +50,6 @@
settings-file: '{mvn-settings}'
- shell: |
#!/bin/bash
- curl -O https://dl.google.com/go/go1.10.linux-amd64.tar.gz
- tar -zxf go1.10.linux-amd64.tar.gz
- export GOROOT=$WORKSPACE/go
- export PATH=$PATH:$GOROOT/bin
cd $WORKSPACE/{path}
make build
@@ -95,6 +92,7 @@
submodule-recursive: '{submodule-recursive}'
wrappers:
+ - golang
- infra-wrappers:
build-timeout: '{build-timeout}'
@@ -111,10 +109,6 @@
settings-file: '{mvn-settings}'
- shell: |
#!/bin/bash
- curl -O https://dl.google.com/go/go1.10.linux-amd64.tar.gz
- tar -zxf go1.10.linux-amd64.tar.gz
- export GOROOT=$PWD/go
- export PATH=$PATH:$GOROOT/bin
cd $WORKSPACE/{path}
make deploy
@@ -152,6 +146,7 @@
submodule-recursive: '{submodule-recursive}'
wrappers:
+ - golang
- infra-wrappers:
build-timeout: '{build-timeout}'