Merge "Apply new env and volume regexes"
[releng.git] / jjb / releng / releng-release-jobs.yaml
1 # SPDX-License-Identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018 The Linux Foundation and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 - project:
11     name: releng-release-jobs
12
13     build-node: 'opnfv-build'
14
15     stream:
16       - fraser
17       - gambia
18       - hunter
19       - iruya
20       - jerma
21       - kali
22       - leguer
23       - v1.21
24       - wallaby
25
26     jobs:
27       - 'releng-release-{stream}-verify'
28       - 'releng-release-{stream}-merge'
29
30     project: 'releng'
31
32 - job-template:
33     name: 'releng-release-{stream}-verify'
34
35     parameters:
36       - '{build-node}-defaults'
37       - stream-parameter:
38           stream: '{stream}'
39       - project-parameter:
40           project: '{project}'
41           branch: 'master'
42
43     scm:
44       - git-scm-gerrit
45
46     triggers:
47       - gerrit:
48           server-name: 'gerrit.opnfv.org'
49           trigger-on:
50             - patchset-created-event:
51                 exclude-drafts: 'false'
52                 exclude-trivial-rebase: 'false'
53                 exclude-no-code-change: 'false'
54             - comment-added-contains-event:
55                 comment-contains-value: 'recheck'
56             - comment-added-contains-event:
57                 comment-contains-value: 'reverify'
58           projects:
59             - project-compare-type: 'ANT'
60               project-pattern: 'releng'
61               branches:
62                 - branch-compare-type: 'ANT'
63                   branch-pattern: '**/master'
64               file-paths:
65                 - compare-type: ANT
66                   pattern: 'releases/{stream}/**'
67                 - compare-type: ANT
68                   pattern: 'releases/schema.yaml'
69                 - compare-type: ANT
70                   pattern: 'releases/scripts/verify_schema.py'
71
72     builders:
73       - shell: !include-raw-escape:
74           - releng-release-create-venv.sh
75           - branch-or-tag.sh
76
77     publishers:
78       - email-jenkins-admins-on-failure
79
80 - job-template:
81     name: 'releng-release-{stream}-merge'
82
83     parameters:
84       - node:
85           name: SLAVE_NAME
86           description: 'Only run merge job on build1 or 2'
87           default-slaves:
88             - lf-build1
89             - lf-build2
90           allowed-multiselect: false
91           ignore-offline-nodes: true
92       - stream-parameter:
93           stream: '{stream}'
94       - project-parameter:
95           project: '{project}'
96           branch: 'master'
97       # Override GIT_URL so we can send patches back to Gerrit and
98       # modify repos
99       - string:
100           name: GIT_URL
101           default: ssh://$USER@gerrit.opnfv.org:29418/
102           description: 'Git URL to use on this Jenkins Slave'
103
104     scm:
105       - git-scm-gerrit
106
107     triggers:
108       - gerrit-trigger-change-merged:
109           project: '{project}'
110           branch: 'master'
111           files: 'releases/{stream}/*'
112
113     builders:
114       - shell: !include-raw-escape:
115           - releng-release-create-venv.sh
116           - branch-or-tag.sh
117
118     publishers:
119       - email-jenkins-admins-on-failure
120
121 - parameter:
122     name: stream-parameter
123     parameters:
124       - string:
125           name: STREAM
126           default: '{stream}'
127           description: "OPNFV Stable Stream"