blob: 9f9bdf9f1bd1e82820b2e44492ef78037ef41b0f [file] [log] [blame]
NingSunfd33dba2018-03-08 16:11:39 -08001---
2# vim: sw=2 ts=2 sts=2 et :
3
4- job-template:
5 #
6 # job template for build C/C++ project
7 #
8 # Required Variables:
9 # script: build script to execute
10 #
11
12 name: '{project-name}-{stream}-verify-c'
13 project-type: freestyle
14 node: '{build-node}'
15
16 properties:
17 - infra-properties:
18 build-days-to-keep: '{build-days-to-keep}'
19
20 parameters:
21 - infra-parameters:
22 project: '{project}'
23 branch: '{branch}'
24 refspec: 'refs/heads/{branch}'
25 artifacts: '{archive-artifacts}'
26 - maven-exec:
27 maven-version: '{maven-version}'
28
29 scm:
30 - gerrit-trigger-scm:
NingSunb9e870f2018-03-12 19:07:29 -070031 refspec: '$GERRIT_REFSPEC'
NingSunfd33dba2018-03-08 16:11:39 -080032 choosing-strategy: 'gerrit'
33 submodule-recursive: '{submodule-recursive}'
34
35 wrappers:
36 - infra-wrappers:
37 build-timeout: '{build-timeout}'
38
39 triggers:
40 - gerrit-trigger-patch-submitted:
41 server: '{server-name}'
42 project: '{project}'
43 branch: '{branch}'
44 files: '**'
45
46 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070047 - lf-infra-pre-build
NingSunfd33dba2018-03-08 16:11:39 -080048 - shell: '{script}'
49
50 publishers:
51 - infra-shiplogs:
52 maven-version: '{maven-version}'
Manjunath Ranganathaiah9d6c8232018-08-15 11:42:10 -070053
54
55- job-template:
56 # Job template for building & pushing docker images
57 #
58 # The purpose of this job template is to run:
59 # 1. login to the docker registry
60 # 2. run a specified shell builder
61 #
62
63 name: '{project-name}-{stream}-docker-c-shell-daily'
64 project-type: freestyle
65 node: 'ubuntu1604-docker-8c-8g'
66 disabled: false
67 properties:
68 - infra-properties:
69 build-days-to-keep: '{build-days-to-keep}'
70
71 parameters:
72 - infra-parameters:
73 project: '{project}'
74 branch: '{branch}'
75 refspec: 'refs/heads/{branch}'
76 artifacts: '{archive-artifacts}'
77
78 scm:
79 - gerrit-trigger-scm:
80 refspec: ''
81 choosing-strategy: 'default'
82 submodule-recursive: '{submodule-recursive}'
83
84 wrappers:
85 - infra-wrappers:
86 build-timeout: '{build-timeout}'
87
88 triggers:
89 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -070090 - timed: '@daily'
Manjunath Ranganathaiah9d6c8232018-08-15 11:42:10 -070091 - gerrit-trigger-release-manually:
92 server: '{server-name}'
93 project: '{project}'
94 branch: '{branch}'
95
96 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070097 - lf-infra-pre-build
Manjunath Ranganathaiah9d6c8232018-08-15 11:42:10 -070098 - provide-maven-settings:
99 global-settings-file: 'global-settings'
100 settings-file: '{mvn-settings}'
101 - docker-login
102 - shell: '{script}'
103
104 publishers:
105 - infra-shiplogs:
106 maven-version: '{maven-version}'