blob: 69aadc83f17017c1af71fd8798aeb545205de217 [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:
47 - shell: '{script}'
48
49 publishers:
50 - infra-shiplogs:
51 maven-version: '{maven-version}'
Manjunath Ranganathaiah9d6c8232018-08-15 11:42:10 -070052
53
54- job-template:
55 # Job template for building & pushing docker images
56 #
57 # The purpose of this job template is to run:
58 # 1. login to the docker registry
59 # 2. run a specified shell builder
60 #
61
62 name: '{project-name}-{stream}-docker-c-shell-daily'
63 project-type: freestyle
64 node: 'ubuntu1604-docker-8c-8g'
65 disabled: false
66 properties:
67 - infra-properties:
68 build-days-to-keep: '{build-days-to-keep}'
69
70 parameters:
71 - infra-parameters:
72 project: '{project}'
73 branch: '{branch}'
74 refspec: 'refs/heads/{branch}'
75 artifacts: '{archive-artifacts}'
76
77 scm:
78 - gerrit-trigger-scm:
79 refspec: ''
80 choosing-strategy: 'default'
81 submodule-recursive: '{submodule-recursive}'
82
83 wrappers:
84 - infra-wrappers:
85 build-timeout: '{build-timeout}'
86
87 triggers:
88 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -070089 - timed: '@daily'
Manjunath Ranganathaiah9d6c8232018-08-15 11:42:10 -070090 - gerrit-trigger-release-manually:
91 server: '{server-name}'
92 project: '{project}'
93 branch: '{branch}'
94
95 builders:
96 - provide-maven-settings:
97 global-settings-file: 'global-settings'
98 settings-file: '{mvn-settings}'
99 - docker-login
100 - shell: '{script}'
101
102 publishers:
103 - infra-shiplogs:
104 maven-version: '{maven-version}'