[docs] Limit git submodule recurse to depth 1
[releng.git] / jjb / openci / openci-opnfv-daily-jobs.yaml
1 ---
2 - project:
3     name: openci-opnfv
4
5     project: '{name}'
6
7     stream:
8       - master:
9           branch: '{stream}'
10           gs-pathname: ''
11           disabled: false
12
13     scenario:
14       - 'os-odl-nofeature-ha':
15           origin: ODL
16       - 'k8-nosdn-onap-ha':
17           origin: ONAP
18
19     jobs:
20       - 'openci-opnfv-{scenario}-compose-daily-{stream}'
21       - 'openci-opnfv-{scenario}-test-daily-{stream}'
22
23 - job-template:
24     name: 'openci-opnfv-{scenario}-compose-daily-{stream}'
25
26     disabled: '{obj:disabled}'
27
28     concurrent: false
29
30     parameters:
31       - string:
32           name: PUBLISH_EVENT_TYPE
33           default: CompositionDefinedEvent
34           description: 'The type of the event this job publishes'
35       - string:
36           name: PUBLISH_EVENT_ORIGIN
37           default: OPNFV
38           description: 'Originating community'
39       - string:
40           name: DEPLOY_SCENARIO
41           default: '{scenario}'
42           description: 'The scenario that is composed'
43       - string:
44           name: SCENARIO_METADATA_LOCATION
45           default: https://url/to/scenario/metadata/on/opnfv/artifact/repo/$BUILD_NUMBER
46           description: 'The location of the scenario metadata'
47       - 'opnfv-build-defaults'
48
49     triggers:
50       - jms-messaging:
51           provider-name: openci.activemq
52           selector: CI_TYPE = 'custom'
53           checks:
54             - field: origin
55               expected-value: '{origin}'
56             - field: type
57               expected-value: 'ArtifactPublishedEvent'
58
59     builders:
60       - shell: |
61           #!/bin/bash
62
63           echo
64           echo "Triggered by $type"
65           echo "----------------------------------"
66           echo $CI_MESSAGE
67           echo "----------------------------------"
68       - shell:
69           !include-raw-escape: ./create-cde.sh
70       - inject:
71           properties-file: "$WORKSPACE/event.properties"
72
73     publishers:
74       - jms-messaging:
75           provider-name: openci.activemq
76           msg-type: Custom
77           msg-props: |
78             type=$type
79             origin=$origin
80             scenario=$scenario
81           msg-content:
82             $eventBody
83
84 - job-template:
85     name: 'openci-opnfv-{scenario}-test-daily-{stream}'
86
87     disabled: '{obj:disabled}'
88
89     concurrent: false
90
91     parameters:
92       - string:
93           name: PUBLISH_EVENT_TYPE
94           default: ConfidenceLevelModifiedEvent
95           description: 'The type of the event this job publishes'
96       - string:
97           name: PUBLISH_EVENT_ORIGIN
98           default: OPNFV
99           description: 'Originating community'
100       - string:
101           name: DEPLOY_SCENARIO
102           default: '{scenario}'
103           description: 'The scenario that is composed'
104       - string:
105           name: SCENARIO_METADATA_LOCATION
106           default: https://url/to/scenario/metadata/on/opnfv/artifact/repo/$BUILD_NUMBER
107           description: 'The location of the scenario metadata'
108       - string:
109           name: CONFIDENCE_LEVEL
110           default: "'opnfvdaily': 'SUCCESS'"
111           description: 'The confidence level the published artifact gained'
112       - 'opnfv-build-defaults'
113
114     triggers:
115       - jms-messaging:
116           provider-name: openci.activemq
117           selector: CI_TYPE = 'custom'
118           checks:
119             - field: origin
120               expected-value: 'OPNFV'
121             - field: type
122               expected-value: 'CompositionDefinedEvent'
123             - field: scenario
124               expected-value: '{scenario}'
125
126     builders:
127       - shell: |
128           #!/bin/bash
129
130           echo
131           echo "Triggered by $type"
132           echo "----------------------------------"
133           echo $CI_MESSAGE
134           echo "----------------------------------"
135       - shell:
136           !include-raw-escape: ./create-clme.sh
137       - inject:
138           properties-file: "$WORKSPACE/event.properties"
139
140     publishers:
141       - jms-messaging:
142           provider-name: openci.activemq
143           msg-type: Custom
144           msg-props: |
145             type=$type
146             origin=$origin
147             scenario=$scenario
148           msg-content:
149             $eventBody