blob: 8c9a12942dc60118f5e7e3aba9b13eb315aa111f [file] [log] [blame]
Kailash Khalasic585d062018-04-06 16:22:40 -07001---
Kailash Khalasi3074e602018-04-12 12:09:20 -07002# POD Nightly Build Pipeline Jobs
Kailash Khalasic585d062018-04-06 16:22:40 -07003
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
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070023- job-pod-plate: &job-pod-plate
24 name: job-pod-plate
25 pod:
26 - 'qct-cord-pod1'
27 - 'qct-cord-pod3'
28
29- job-config-plate: &job-config-plate
30 name: job-config-plate
31 config:
32 - 'qct-pod1.yml'
33 - 'qct-pod3.yml'
Kailash Khalasic585d062018-04-06 16:22:40 -070034
35- job-version-plate: &job-version-plate
36 name: job-version-plate
37 version:
38 - 'master'
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070039 - 'cord-5.0'
40 - 'cord-4.1'
41 - 'cord-4.0'
Kailash Khalasic585d062018-04-06 16:22:40 -070042
Kailash Khalasic585d062018-04-06 16:22:40 -070043- job-template:
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070044 name: 'build-{pod}-{version}'
Kailash Khalasic585d062018-04-06 16:22:40 -070045 description: |
46 <!-- Managed by Jenkins Job Builder -->
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070047 It builds nighlty a full POD at {pod} <br /><br />
Kailash Khalasic585d062018-04-06 16:22:40 -070048 Created by Kailash Khalasi - kailash@opennetworking.org<br />
49 Copyright (c) 2017 Open Networking Foundation (ONF)
50
51 <<: *test-pipe-job-boiler-plate
52
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070053 <<: *job-pod-plate
54
55 <<: *job-config-plate
56
Kailash Khalasic585d062018-04-06 16:22:40 -070057 parameters:
Kailash Khalasic585d062018-04-06 16:22:40 -070058 - string:
Kailash Khalasibb7ca642018-04-11 13:35:17 -070059 name: devNodeName
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070060 default: '{pod}'
Kailash Khalasibb7ca642018-04-11 13:35:17 -070061 description: 'Jenkins node name of Dev Node'
62
63 - string:
Kailash Khalasic585d062018-04-06 16:22:40 -070064 name: configRepoUrl
65 default: 'https://gerrit.opencord.org/pod-configs'
66 description: 'The URL of the POD configs repository'
67
68 - string:
69 name: configRepoBaseDir
70 default: 'pod-configs/'
71 description: 'The directory inside the POD configs repository'
72
73 - string:
74 name: configRepoFile
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070075 default: 'deployment-configs/{config}'
Kailash Khalasic585d062018-04-06 16:22:40 -070076 description: 'The deployment config file'
77
78 - string:
79 name: RECEIPIENT
80 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
81 description: ''
82
Kailash Khalasic585d062018-04-06 16:22:40 -070083 concurrent: true
84
Kailash Khalasic585d062018-04-06 16:22:40 -070085
86 pipeline-scm:
Kailash Khalasi3074e602018-04-12 12:09:20 -070087 script-path: 'Jenkinsfile'
Kailash Khalasic585d062018-04-06 16:22:40 -070088 scm:
89 - git:
90 url: 'https://gerrit.opencord.org/cord'
91 branches:
92 - 'master'
93
Kailash Khalasic585d062018-04-06 16:22:40 -070094
95- project:
96 name: nightly-build-pipeline
97
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070098 <<: *job-pod-plate
99 <<: *job-version-plate
100
101 project-name: '{name}'
Kailash Khalasic585d062018-04-06 16:22:40 -0700102
103 build-timeout: '300'
Kailash Khalasic585d062018-04-06 16:22:40 -0700104
105 jobs:
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -0700106 - 'build-{pod}-{version}'