Merge "[docs] Limit git submodule recurse to depth 1"
[releng.git] / jjb / openci / openci-onap-daily-jobs.yaml
1 ---
2 - project:
3     name: openci-onap
4
5     project: '{name}'
6
7     stream:
8       - master:
9           branch: '{stream}'
10           gs-pathname: ''
11           disabled: false
12
13     jobs:
14       - 'openci-onap-autorelease-daily-{stream}'
15       - 'openci-onap-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 # ONAP autorelease job or triggered by the upstream autorelease job.
21 - job-template:
22     name: 'openci-onap-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: ONAP
36           description: 'Originating community'
37       - string:
38           name: ARTIFACT_LOCATION
39           default: https://url/to/artifact/on/onap/nexus/$BUILD_NUMBER
40           description: 'The location of the artifact on ONAP 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-ape.sh
50
51 # This job gets triggered by a ConfidenceLevelModifiedEvent published
52 # by OPNFV jobs so ONAP can promote the autorelease artifact even further.
53 #
54 # This job is created for the demo purposes and might not be there for
55 # the prototype.
56 - job-template:
57     name: 'openci-onap-promote-daily-{stream}'
58
59     disabled: '{obj:disabled}'
60
61     concurrent: false
62
63     parameters:
64       - 'opnfv-build-defaults'
65
66     triggers:
67       - jms-messaging:
68           provider-name: openci.activemq
69           selector: |
70             JMSType = 'ConfidenceLevelModifiedEvent' and JMSOrigin = 'OPNFV' and JMSScenario = 'k8-nosdn-onap-ha'
71
72     builders:
73       - shell: |
74           #!/bin/bash
75
76           echo
77           echo "Triggered by $type"
78           echo "----------------------------------"
79           echo $CI_MESSAGE
80           echo "----------------------------------"
81           echo " Promoted ONAP Autorelease artifact as release candidate!"