blob: 637dade90d09bbc5cd10b8b7ff4c9cfa40897868 [file] [log] [blame]
Luca Prete74fa3222018-03-02 15:46:14 -08001---
2
3- job_boiler_plate: &job_boiler_plate
4 name: job-boiler-plate
5
6 project-type: freestyle
7 node: '{build-node}'
8
9 ######################
10 # Default parameters #
11 ######################
12
13 branch: master
14 submodule-recursive: false
15 git-url: '$GIT_URL/$GERRIT_PROJECT'
16
17 #####################
18 # Job Configuration #
19 #####################
20
21 properties:
22 - lf-infra-properties:
23 project: '{project}'
24 build-days-to-keep: '{build-days-to-keep}'
25
26 parameters:
27 - lf-infra-parameters:
28 project: '{project}'
29 branch: '{stream}'
30 stream: '{stream}'
31 lftools-version: '{lftools-version}'
32
33 wrappers:
34 - lf-infra-wrappers:
35 build-timeout: '{build-timeout}'
36 jenkins-ssh-credential: '{jenkins-ssh-credential}'
37
38- verify_boiler_plate: &verify_boiler_plate
39 name: verify_boiler_plate
40
41 concurrent: true
42
43 scm:
44 - lf-infra-gerrit-scm:
45 git-url: '{git-url}'
46 refspec: '$GERRIT_REFSPEC'
47 branch: '$GERRIT_BRANCH'
48 submodule-recursive: '{submodule-recursive}'
49 choosing-strategy: gerrit
50 jenkins-ssh-credential: '{jenkins-ssh-credential}'
51
52 triggers:
53 - gerrit:
54 #server-name: '{gerrit-server-name}'
55 server-name: 'CORD Project Gerrit'
56 #trigger-on: '{obj:gerrit_verify_triggers}'
57 trigger-on:
58 - patchset-created-event:
59 exclude-drafts: true
60 exclude-trivial-rebase: false
61 exclude-no-code-change: true
62 - draft-published-event
63 - comment-added-contains-event:
64 comment-contains-value: '(?i)^.*recheck$'
65 projects:
66 - project-compare-type: PLAIN
67 project-pattern: '{project}'
68 branches:
69 - branch-compare-type: ANT
70 branch-pattern: '**/{stream}'
71 #file-paths: '{obj:gerrit_trigger_file_paths}'
72
73# workaround for lack of parameter expansion support in shell: (see above)
74- job-template:
75 #default name is global
76 name: 'cord-xos-gui-unit-{stream}'
77
78 <<: *job_boiler_plate
79 # yamllint disable-line rule:key-duplicates
80 <<: *verify_boiler_plate
81
82 builders:
83 #put shell scripts in file then make sure shell check is installed on verify vms
84 - shell: !include-raw-escape: cord-xos-gui-unit.sh
85
86- project:
87 name: cord-xos-gui-unit
88 project-name: cord-xos-gui-unit
89 project: xos-gui
90
91 build-timeout: '10'
Luca Prete4d0592a2018-03-28 10:08:23 -070092 build-node: 'ubuntu16.04-basebuild-1c-1g'
Luca Prete74fa3222018-03-02 15:46:14 -080093
94 stream:
95 - 'master'
96 - 'cord-5.0'
97 - 'cord-4.1'
98 - 'cord-4.0'
99 - 'cord-3.0'
100
101 jobs:
102 - 'cord-xos-gui-unit-{stream}'