X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fglobal-templates-golang.yaml;h=6305828d9b8d25f0b4b52fbb3382d59f8d1d2d10;hb=ba88abc4c883338cbaee2e1dc06aca222ad9a589;hp=e891e92dfb3b83f61895db6c49ad51d83ae62344;hpb=6d54af138144d47da8a76e85c156878f26f37397;p=ci-management.git diff --git a/jjb/global-templates-golang.yaml b/jjb/global-templates-golang.yaml index e891e92df..6305828d9 100644 --- a/jjb/global-templates-golang.yaml +++ b/jjb/global-templates-golang.yaml @@ -5,11 +5,23 @@ # The purpose of this job template is to run: # 1. make build # + # 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 concurrent: true @@ -33,7 +45,7 @@ submodule-recursive: '{submodule-recursive}' wrappers: - - golang + - '{golangver}' - infra-wrappers: build-timeout: '{build-timeout}' @@ -42,7 +54,7 @@ server: '{server-name}' project: '{project}' branch: '{branch}' - files: '**' + files: '{pattern}' builders: - lf-infra-pre-build @@ -53,6 +65,7 @@ #!/bin/bash cd $WORKSPACE/{path} make build + - shell: '{script}' publishers: - infra-shiplogs: @@ -64,11 +77,16 @@ # The purpose of this job template is to run: # 1. make deploy # + # golangver can be set to golang110 or golang111 + # depending on what version is needed by the project + # default is golang110 + # # Required Variables: # branch: git branch (eg. stable/lithium or master) name: '{project-name}-{stream}-merge-golang' path: $WORKSPACE + golangver: 'golang110' project-type: freestyle node: '{build-node}' @@ -93,7 +111,7 @@ submodule-recursive: '{submodule-recursive}' wrappers: - - golang + - '{golangver}' - infra-wrappers: build-timeout: '{build-timeout}' @@ -121,12 +139,17 @@ - job-template: # Job template for building & pushing docker images # + # golangver can be set to golang110 or golang111 + # depending on what version is needed by the project + # default is golang110 + # # The purpose of this job template is to run: # 1. login to the docker registry # 2. run a specified shell builder # name: '{project-name}-{stream}-docker-golang-shell-daily' + golangver: 'golang110' project-type: freestyle node: 'ubuntu1604-docker-8c-8g' disabled: false @@ -148,7 +171,7 @@ submodule-recursive: '{submodule-recursive}' wrappers: - - golang + - '{golangver}' - infra-wrappers: build-timeout: '{build-timeout}'