diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-02-12 15:44:42 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-02-12 14:51:07 +0000 |
commit | c745ca60dd3777a72aa80b1117f9779eb2a49332 (patch) | |
tree | d276b926eb6f5d11e8ec6397e73f2c41e816d248 /jjb | |
parent | b728d49ff22b2b95e024c9d5029690d835ed09a8 (diff) |
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 <b.grzybowski@partner.samsung.com>
Issue-ID: INT-1436
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/global-templates-golang.yaml | 12 |
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: |