openci: Run jobs on xci slaves
[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       - label:
48           name: SLAVE_LABEL
49           default: 'xci-virtual'
50
51     wrappers:
52       - credentials-binding:
53           - username-password-separated:
54               credential-id: openci-connect-activemq
55               username: ACTIVEMQ_USER
56               password: ACTIVEMQ_PASSWORD
57       - workspace-cleanup
58
59     triggers:
60       - jms-messaging:
61           provider-name: openci.activemq
62           selector: JMSType = 'ArtifactPublishedEvent' and JMSOrigin = '{origin}'
63
64     builders:
65       - shell: |
66           #!/bin/bash
67
68           echo
69           echo "Triggered by $type"
70           echo "----------------------------------"
71           echo $CI_MESSAGE
72           echo "----------------------------------"
73       - shell:
74           !include-raw-escape: ./create-cde.sh
75
76 - job-template:
77     name: 'openci-opnfv-{scenario}-test-daily-{stream}'
78
79     disabled: '{obj:disabled}'
80
81     concurrent: false
82
83     parameters:
84       - string:
85           name: PUBLISH_EVENT_TYPE
86           default: ConfidenceLevelModifiedEvent
87           description: 'The type of the event this job publishes'
88       - string:
89           name: PUBLISH_EVENT_ORIGIN
90           default: OPNFV
91           description: 'Originating community'
92       - string:
93           name: DEPLOY_SCENARIO
94           default: '{scenario}'
95           description: 'The scenario that is composed'
96       - string:
97           name: SCENARIO_METADATA_LOCATION
98           default: https://url/to/scenario/metadata/on/opnfv/artifact/repo/$BUILD_NUMBER
99           description: 'The location of the scenario metadata'
100       - string:
101           name: CONFIDENCE_LEVEL
102           default: "'opnfvdaily': 'SUCCESS'"
103           description: 'The confidence level the published artifact gained'
104       - label:
105           name: SLAVE_LABEL
106           default: 'xci-virtual'
107
108     wrappers:
109       - credentials-binding:
110           - username-password-separated:
111               credential-id: openci-connect-activemq
112               username: ACTIVEMQ_USER
113               password: ACTIVEMQ_PASSWORD
114       - workspace-cleanup
115
116     triggers:
117       - jms-messaging:
118           provider-name: openci.activemq
119           selector: JMSType = 'CompositionDefinedEvent' and JMSOrigin = 'OPNFV' and JMSScenario = '{scenario}'
120
121     builders:
122       - shell: |
123           #!/bin/bash
124
125           echo
126           echo "Triggered by $type"
127           echo "----------------------------------"
128           echo $CI_MESSAGE
129           echo "----------------------------------"
130       - shell:
131           !include-raw-escape: ./create-clme.sh