summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-02-12 18:06:42 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-12 18:06:42 +0000
commit55de87ab20f548d8ed2027d2bc1a8b0960483762 (patch)
treec17ecd55a573ed491fd0942d444aaa03f19b4543 /jjb
parent762d7cf4757160b3512249c93d4666d6f2295258 (diff)
parentc745ca60dd3777a72aa80b1117f9779eb2a49332 (diff)
Merge "Upgrade verify-golang job template"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/global-templates-golang.yaml12
1 files changed, 10 insertions, 2 deletions
diff --git a/jjb/global-templates-golang.yaml b/jjb/global-templates-golang.yaml
index ba2f74e2e..6305828d9 100644
--- a/jjb/global-templates-golang.yaml
+++ b/jjb/global-templates-golang.yaml
@@ -5,15 +5,22 @@
# The purpose of this job template is to run:
# 1. make build
#
- # golangver can be set to golang110 or golang111
+ # golangver can be set to golang110, golang111 or golang112
# depending on what version is needed by the project
# default is golang110
#
# Required Variables:
# branch: git branch (eg. stable/lithium or master)
+ #
+ # Optional Variables:
+ # script: build script to execute
+ # pattern: ant file-path pattern relative to the workspace used to
+ # trigger the job
name: '{project-name}-{stream}-verify-golang'
path: '$WORKSPACE'
+ pattern: '**'
+ script: ''
golangver: 'golang110'
project-type: freestyle
@@ -47,7 +54,7 @@
server: '{server-name}'
project: '{project}'
branch: '{branch}'
- files: '**'
+ files: '{pattern}'
builders:
- lf-infra-pre-build
@@ -58,6 +65,7 @@
#!/bin/bash
cd $WORKSPACE/{path}
make build
+ - shell: '{script}'
publishers:
- infra-shiplogs: