blob: 5e3f78432d80251fedf76bf59effdec4a6bb0abf [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'
Kailash Khalasi7b92e892018-03-30 07:07:55 -070021 jenkins-path: 'Jenkinsfile'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070022
23
24- job-version-plate: &job-version-plate
25 name: job-version-plate
26 version:
27 - 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070028
29- job-type-plate: &job-type-plate
30 name: job-type-plate
31 type:
32 - 'all-xos-api-tests'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070033
34- job-template:
35 name: '{type}-pipeline-{version}'
36 description: |
37 <!-- Managed by Jenkins Job Builder -->
38 This pipeline contains the test results and logs of {type} on CORD {version}. <br /><br />
39 Created by Kailash Khalasi - kailash@opennetworking.org<br />
40 Copyright (c) 2017 Open Networking Foundation (ONF)
41
42 <<: *test-pipe-job-boiler-plate
43
44 parameters:
45
46 - string:
47 name: GERRIT_CHANGE_NUMBER
48 default: '2831'
49 description: 'This parameter is required to manually build this pipeline job'
50
51 - string:
52 name: GERRIT_PATCHSET_NUMBER
53 default: '1'
54 description: 'This parameter is required to manually build this pipeline job'
55
56 - string:
57 name: RECEIPIENT
58 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
59 description: ''
60
61 - lf-infra-parameters:
62 project: '{project}'
63 branch: '{stream}'
64 stream: '{stream}'
65 lftools-version: '<1.0.0'
66
67 concurrent: true
68
69 triggers:
70 - gerrit:
Kailash Khalasi4a476ef2018-03-29 18:04:46 -070071 server-name: 'CORD Gerrit'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070072 trigger-on:
73 - patchset-created-event:
74 exclude-drafts: false
75 exclude-trivial-rebase: false
76 exclude-no-code-change: false
77 - draft-published-event
78 projects:
79 - project-compare-type: PLAIN
80 project-pattern: 'build'
81 branches:
82 - branch-compare-type: ANT
Kailash Khalasi1f91e6f2018-03-29 19:12:50 -070083 branch-pattern: 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070084
85 - project-compare-type: PLAIN
86 project-pattern: 'platform-install'
87 branches:
88 - branch-compare-type: ANT
Kailash Khalasi1f91e6f2018-03-29 19:12:50 -070089 branch-pattern: 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070090
91 - project-compare-type: PLAIN
92 project-pattern: 'xos'
93 branches:
94 - branch-compare-type: ANT
Kailash Khalasi1f91e6f2018-03-29 19:12:50 -070095 branch-pattern: 'master'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070096
97 pipeline-scm:
98 script-path: '{jenkins-path}/{type}-JenkinsFile'
99 scm:
100 - git:
101 url: '{gitURL}'
102 branches:
103 - 'master'
104
105- project:
106 name: build-pipeline
107
108 <<: *job-type-plate
109
110 project-name: '{type}-pipeline'
111
112 build-timeout: '60'
113 build-node: 'ubuntu16.04-basebuild-1c-2g'
114
115 <<: *test-pipe-init-procedure-plate
116 <<: *job-version-plate
117
118 jobs:
119 - '{type}-pipeline-{version}'
120