timeout: 360
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.
submodule-recursive: '{submodule-recursive}'
wrappers:
+ - golang
- infra-wrappers:
build-timeout: '{build-timeout}'
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
submodule-recursive: '{submodule-recursive}'
wrappers:
+ - golang
- infra-wrappers:
build-timeout: '{build-timeout}'
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
submodule-recursive: '{submodule-recursive}'
wrappers:
+ - golang
- infra-wrappers:
build-timeout: '{build-timeout}'