[docs] Limit git submodule recurse to depth 1
[releng.git] / jjb / openci / openci-odl-daily-jobs.yaml
1 ---
2 - project:
3     name: openci-odl
4
5     project: '{name}'
6
7     stream:
8       - master:
9           branch: '{stream}'
10           gs-pathname: ''
11           disabled: false
12
13     jobs:
14       - 'openci-odl-autorelease-daily-{stream}'
15       - 'openci-odl-promote-daily-{stream}'
16
17 # This job gets triggered manually for the demo purposes.
18 #
19 # In prototype, either what this job does needs to be integrated to
20 # ODL autorelease job or triggered by the upstream autorelease job.
21 - job-template:
22     name: 'openci-odl-autorelease-daily-{stream}'
23
24     disabled: '{obj:disabled}'
25
26     concurrent: false
27
28     parameters:
29       - string:
30           name: PUBLISH_EVENT_TYPE
31           default: ArtifactPublishedEvent
32           description: 'The type of the event this job publishes'
33       - string:
34           name: PUBLISH_EVENT_ORIGIN
35           default: ODL
36           description: 'Originating community'
37       - string:
38           name: ARTIFACT_LOCATION
39           default: https://url/to/artifact/on/odl/nexus/$BUILD_NUMBER
40           description: 'The location of the artifact on ODL Nexus'
41       - string:
42           name: CONFIDENCE_LEVEL
43           default: "'autorelease': 'SUCCESS'"
44           description: 'The confidence level the published artifact gained'
45       - 'opnfv-build-defaults'
46
47     builders:
48       - shell:
49           !include-raw-escape: ./create-ane.sh
50       - inject:
51           properties-file: "$WORKSPACE/event.properties"
52
53     publishers:
54       - jms-messaging:
55           provider-name: openci.activemq
56           msg-type: Custom
57           msg-props: |
58             type=$type
59             origin=$origin
60           msg-content:
61             $eventBody
62
63 # This job gets triggered by a ConfidenceLevelModifiedEvent published
64 # by OPNFV jobs so ODL can promote the autorelease artifact even further.
65 #
66 # This job is created for the demo purposes and might not be there for
67 # the prototype.
68 - job-template:
69     name: 'openci-odl-promote-daily-{stream}'
70
71     disabled: '{obj:disabled}'
72
73     concurrent: false
74
75     parameters:
76       - 'opnfv-build-defaults'
77
78     triggers:
79       - jms-messaging:
80           provider-name: openci.activemq
81           selector: CI_TYPE = 'custom'
82           checks:
83             - field: origin
84               expected-value: 'OPNFV'
85             - field: type
86               expected-value: 'ConfidenceLevelModifiedEvent'
87             - field: scenario
88               expected-value: 'os-odl-nofeature'
89
90     builders:
91       - shell: |
92           #!/bin/bash
93
94           echo
95           echo "Triggered by $type"
96           echo "----------------------------------"
97           echo $CI_MESSAGE
98           echo "----------------------------------"
99           echo " Promoted ODL Autorelease artifact as release candidate!"