From: Bartek Grzybowski Date: Wed, 12 Feb 2020 14:44:42 +0000 (+0100) Subject: Upgrade verify-golang job template X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c745ca60dd3777a72aa80b1117f9779eb2a49332;p=ci-management.git Upgrade verify-golang job template Added option to trigger job based on file pattern. Added option to trigger custom build script. Change-Id: I5c23752a921b64fe08457ca410eb46f226b22140 Signed-off-by: Bartek Grzybowski Issue-ID: INT-1436 --- 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: