Code Review
/
ci-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fix: Replace nodejs-dev with libnode-dev on 20.04 Ubuntu Should fix IT-24453"
[ci-management.git]
/
jjb
/
global-templates-golang.yaml
diff --git
a/jjb/global-templates-golang.yaml
b/jjb/global-templates-golang.yaml
index
ba2f74e
..
72004dc
100644
(file)
--- a/
jjb/global-templates-golang.yaml
+++ b/
jjb/global-templates-golang.yaml
@@
-1,19
+1,26
@@
---
---
-- job-template:
+- job-template:
&verify_golang_bolierplate
# Job template for Golang verify jobs
#
# The purpose of this job template is to run:
# 1. make build
#
# Job template for Golang verify jobs
#
# 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)
# 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'
name: '{project-name}-{stream}-verify-golang'
path: '$WORKSPACE'
+ pattern: '**'
+ script: ''
golangver: 'golang110'
project-type: freestyle
golangver: 'golang110'
project-type: freestyle
@@
-47,7
+54,7
@@
server: '{server-name}'
project: '{project}'
branch: '{branch}'
server: '{server-name}'
project: '{project}'
branch: '{branch}'
- files: '
**
'
+ files: '
{pattern}
'
builders:
- lf-infra-pre-build
builders:
- lf-infra-pre-build
@@
-58,10
+65,16
@@
#!/bin/bash
cd $WORKSPACE/{path}
make build
#!/bin/bash
cd $WORKSPACE/{path}
make build
+ - shell: '{script}'
publishers:
publishers:
- - infra-shiplogs:
- maven-version: '{maven-version}'
+ - lf-infra-publish
+
+- job-template:
+ # Job template for Golang verify jobs with subproject support
+
+ <<: *verify_golang_bolierplate
+ name: '{project-name}-{stream}-{subproject}-verify-golang'
- job-template:
# Job template for Golang merge jobs
- job-template:
# Job template for Golang merge jobs
@@
-125,8
+138,7
@@
make deploy
publishers:
make deploy
publishers:
- - infra-shiplogs:
- maven-version: '{maven-version}'
+ - lf-infra-publish
- job-template:
# Job template for building & pushing docker images
- job-template:
# Job template for building & pushing docker images
@@
-143,7
+155,7
@@
name: '{project-name}-{stream}-docker-golang-shell-daily'
golangver: 'golang110'
project-type: freestyle
name: '{project-name}-{stream}-docker-golang-shell-daily'
golangver: 'golang110'
project-type: freestyle
- node: 'ubuntu1
6
04-docker-8c-8g'
+ node: 'ubuntu1
8
04-docker-8c-8g'
disabled: false
properties:
- infra-properties:
disabled: false
properties:
- infra-properties:
@@
-155,7
+167,6
@@
branch: '{branch}'
refspec: 'refs/heads/{branch}'
artifacts: '{archive-artifacts}'
branch: '{branch}'
refspec: 'refs/heads/{branch}'
artifacts: '{archive-artifacts}'
-
scm:
- gerrit-trigger-scm:
refspec: ''
scm:
- gerrit-trigger-scm:
refspec: ''
@@
-186,5
+197,4
@@
- shell: '{script}'
publishers:
- shell: '{script}'
publishers:
- - infra-shiplogs:
- maven-version: '{maven-version}'
+ - lf-infra-publish