blob: aaf4147c4d87886167f3991386f4b0206d2136c3 [file] [log] [blame]
Kailash Khalasi3bffc822018-03-28 09:56:23 -07001---
2# CORD Test Pipeline jobs
3
4- test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate
5 name: test-pipe-job-boiler-plate
6
7 project-type: pipeline
8
9 sandbox: true
10
11 properties:
12
13 - build-discarder:
14 num-to-keep: 20
15 gitURL: https://gerrit.opencord.org/cord-tester
16
17- test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate
18 name: test-pipe-init-procedure-plate
19 project: cord-tester
20 stream: 'master'
21 jenkins-path: 'JenkinsFile'
22
23
24- job-version-plate: &job-version-plate
25 name: job-version-plate
26 version:
27 - 'master'
28 - 'cord-5.0'
29
30- job-type-plate: &job-type-plate
31 name: job-type-plate
32 type:
33 - 'all-xos-api-tests'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070034
35- job-template:
36 name: '{type}-pipeline-{version}'
37 description: |
38 <!-- Managed by Jenkins Job Builder -->
39 This pipeline contains the test results and logs of {type} on CORD {version}. <br /><br />
40 Created by Kailash Khalasi - kailash@opennetworking.org<br />
41 Copyright (c) 2017 Open Networking Foundation (ONF)
42
43 <<: *test-pipe-job-boiler-plate
44
45 parameters:
46
47 - string:
48 name: GERRIT_CHANGE_NUMBER
49 default: '2831'
50 description: 'This parameter is required to manually build this pipeline job'
51
52 - string:
53 name: GERRIT_PATCHSET_NUMBER
54 default: '1'
55 description: 'This parameter is required to manually build this pipeline job'
56
57 - string:
58 name: RECEIPIENT
59 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
60 description: ''
61
62 - lf-infra-parameters:
63 project: '{project}'
64 branch: '{stream}'
65 stream: '{stream}'
66 lftools-version: '<1.0.0'
67
68 concurrent: true
69
70 triggers:
71 - gerrit:
Kailash Khalasi4a476ef2018-03-29 18:04:46 -070072 server-name: 'CORD Gerrit'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070073 trigger-on:
74 - patchset-created-event:
75 exclude-drafts: false
76 exclude-trivial-rebase: false
77 exclude-no-code-change: false
78 - draft-published-event
79 projects:
80 - project-compare-type: PLAIN
81 project-pattern: 'build'
82 branches:
83 - branch-compare-type: ANT
Kailash Khalasi1f91e6f2018-03-29 19:12:50 -070084 branch-pattern: 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070085
86 - project-compare-type: PLAIN
87 project-pattern: 'platform-install'
88 branches:
89 - branch-compare-type: ANT
Kailash Khalasi1f91e6f2018-03-29 19:12:50 -070090 branch-pattern: 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070091
92 - project-compare-type: PLAIN
93 project-pattern: 'xos'
94 branches:
95 - branch-compare-type: ANT
Kailash Khalasi1f91e6f2018-03-29 19:12:50 -070096 branch-pattern: 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070097
98 pipeline-scm:
99 script-path: '{jenkins-path}/{type}-JenkinsFile'
100 scm:
101 - git:
102 url: '{gitURL}'
103 branches:
104 - 'master'
105
106- project:
107 name: build-pipeline
108
109 <<: *job-type-plate
110
111 project-name: '{type}-pipeline'
112
113 build-timeout: '60'
114 build-node: 'ubuntu16.04-basebuild-1c-2g'
115
116 <<: *test-pipe-init-procedure-plate
117 <<: *job-version-plate
118
119 jobs:
120 - '{type}-pipeline-{version}'
121