blob: 6259281780eecadfc80c5e059883c9ff3ff82500 [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
Kailash Khalasi23605042018-03-30 09:36:37 -070080 project-pattern: 'cord-tester'
Kailash Khalasi3bffc822018-03-28 09:56:23 -070081 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 pipeline-scm:
86 script-path: '{jenkins-path}/{type}-JenkinsFile'
87 scm:
88 - git:
89 url: '{gitURL}'
90 branches:
91 - 'master'
92
93- project:
94 name: build-pipeline
95
96 <<: *job-type-plate
97
98 project-name: '{type}-pipeline'
99
100 build-timeout: '60'
101 build-node: 'ubuntu16.04-basebuild-1c-2g'
102
103 <<: *test-pipe-init-procedure-plate
104 <<: *job-version-plate
105
106 jobs:
107 - '{type}-pipeline-{version}'
108