Publish opnfvdocs pieman branch
[releng.git] / jjb / infra / infra-daily-jobs.yml
1 - project:
2     name: 'infra-daily-jobs'
3
4     project: 'releng'
5
6     installer: 'infra'
7 #--------------------------------
8 # BRANCH ANCHORS
9 #--------------------------------
10     master: &master
11         stream: master
12         branch: '{stream}'
13         gs-pathname: ''
14 #--------------------------------
15 #        CI Slaves
16 #--------------------------------
17     pod:
18         - virtual:
19             slave-label: infra-virtual-trusty
20             <<: *master
21 #--------------------------------
22 #       phases
23 #--------------------------------
24     phase:
25         - 'provision'
26         - 'deploy'
27         - 'smoketest'
28 #--------------------------------
29 #       scenarios
30 #--------------------------------
31     scenario:
32         - 'os-nosdn-nofeature-noha'
33 #--------------------------------
34 #       jobs
35 #--------------------------------
36     jobs:
37         - 'infra-{scenario}-{pod}-daily-{stream}'
38         - 'infra-{phase}-{pod}-daily-{stream}'
39 ########################
40 # job templates
41 ########################
42 - job-template:
43     name: 'infra-{scenario}-{pod}-daily-{stream}'
44
45     concurrent: false
46
47     properties:
48         - build-blocker:
49             use-build-blocker: true
50             blocking-jobs:
51                 - 'infra-os-.*?-{pod}-daily-{stream}'
52             block-level: 'NODE'
53
54     wrappers:
55         - build-name:
56             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
57
58     triggers:
59         - timed: 'H */3 * * *'
60
61     parameters:
62         - project-parameter:
63             project: '{project}'
64         - '{installer}-defaults'
65         - '{slave-label}-defaults'
66         - string:
67             name: DEPLOY_SCENARIO
68             default: '{scenario}'
69
70     builders:
71         - description-setter:
72             description: "Built on $NODE_NAME"
73         - trigger-builds:
74             - project: 'infra-provision-{pod}-daily-{stream}'
75               current-parameters: false
76               predefined-parameters:
77                 DEPLOY_SCENARIO={scenario}
78               same-node: true
79               block: true
80         - trigger-builds:
81             - project: 'infra-deploy-{pod}-daily-{stream}'
82               current-parameters: false
83               predefined-parameters:
84                 DEPLOY_SCENARIO={scenario}
85               same-node: true
86               block: true
87         - trigger-builds:
88             - project: 'infra-smoketest-{pod}-daily-{stream}'
89               current-parameters: false
90               predefined-parameters:
91                 DEPLOY_SCENARIO={scenario}
92               block: true
93               same-node: true
94               block-thresholds:
95                 build-step-failure-threshold: 'never'
96                 failure-threshold: 'never'
97                 unstable-threshold: 'FAILURE'
98
99     publishers:
100         - email:
101             recipients: fatih.degirmenci@ericsson.com yroblamo@redhat.com mchandras@suse.de jack.morgan@intel.com zhang.jun3g@zte.com.cn
102
103 - job-template:
104     name: 'infra-{phase}-{pod}-daily-{stream}'
105
106     concurrent: false
107
108     properties:
109         - build-blocker:
110             use-build-blocker: true
111             blocking-jobs:
112                 - 'infra-provision-{pod}-daily-{stream}'
113                 - 'infra-deploy-{pod}-daily-{stream}'
114                 - 'infra-smoketest-{pod}-daily-{stream}'
115             block-level: 'NODE'
116
117     parameters:
118         - project-parameter:
119             project: '{project}'
120         - '{installer}-defaults'
121         - '{slave-label}-defaults'
122         - string:
123             name: DEPLOY_SCENARIO
124             default: 'os-nosdn-nofeature-noha'
125         - string:
126             name: CLEAN_DIB_IMAGES
127             default: 'false'
128
129     scm:
130         - git-scm:
131             credentials-id: '{ssh-credentials}'
132             refspec: ''
133             branch: '{branch}'
134
135     wrappers:
136         - build-name:
137             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
138
139     builders:
140         - description-setter:
141             description: "Built on $NODE_NAME"
142         - 'infra-{phase}-daily-builder'
143 #####################################
144 # builder macros
145 #####################################
146 - builder:
147     name: 'infra-provision-daily-builder'
148     builders:
149         - shell: |
150             #!/bin/bash
151
152             sudo $WORKSPACE/jjb/infra/infra-provision.sh
153 - builder:
154     name: 'infra-deploy-daily-builder'
155     builders:
156         - shell: |
157             #!/bin/bash
158
159             sudo $WORKSPACE/jjb/infra/infra-deploy.sh
160 - builder:
161     name: 'infra-smoketest-daily-builder'
162     builders:
163         - shell: |
164             #!/bin/bash
165
166             sudo $WORKSPACE/jjb/infra/infra-smoketest.sh