Merge "Support CentOS 7 in GoogleStorage Gitlab template"
[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       - v1.22
26       - xena
27       - v1.23
28       - lakelse
29
30     jobs:
31       - 'releng-release-{stream}-verify'
32       - 'releng-release-{stream}-merge'
33
34     project: 'releng'
35
36 - job-template:
37     name: 'releng-release-{stream}-verify'
38
39     parameters:
40       - '{build-node}-defaults'
41       - stream-parameter:
42           stream: '{stream}'
43       - project-parameter:
44           project: '{project}'
45           branch: 'master'
46
47     scm:
48       - git-scm-gerrit
49
50     triggers:
51       - gerrit:
52           server-name: 'gerrit.opnfv.org'
53           trigger-on:
54             - patchset-created-event:
55                 exclude-drafts: 'false'
56                 exclude-trivial-rebase: 'false'
57                 exclude-no-code-change: 'false'
58             - comment-added-contains-event:
59                 comment-contains-value: 'recheck'
60             - comment-added-contains-event:
61                 comment-contains-value: 'reverify'
62           projects:
63             - project-compare-type: 'ANT'
64               project-pattern: 'releng'
65               branches:
66                 - branch-compare-type: 'ANT'
67                   branch-pattern: '**/master'
68               file-paths:
69                 - compare-type: ANT
70                   pattern: 'releases/{stream}/**'
71                 - compare-type: ANT
72                   pattern: 'releases/schema.yaml'
73                 - compare-type: ANT
74                   pattern: 'releases/scripts/verify_schema.py'
75
76     builders:
77       - shell: !include-raw-escape:
78           - releng-release-create-venv.sh
79           - branch-or-tag.sh
80
81     publishers:
82       - email-jenkins-admins-on-failure
83
84 - job-template:
85     name: 'releng-release-{stream}-merge'
86
87     parameters:
88       - node:
89           name: SLAVE_NAME
90           description: 'Only run merge job on build5 or 6'
91           default-slaves:
92             - lf-build5
93             - lf-build6
94           allowed-multiselect: false
95           ignore-offline-nodes: true
96       - stream-parameter:
97           stream: '{stream}'
98       - project-parameter:
99           project: '{project}'
100           branch: 'master'
101       # Override GIT_URL so we can send patches back to Gerrit and
102       # modify repos
103       - string:
104           name: GIT_URL
105           default: ssh://$USER@gerrit.opnfv.org:29418/
106           description: 'Git URL to use on this Jenkins Slave'
107
108     scm:
109       - git-scm-gerrit
110
111     triggers:
112       - gerrit-trigger-change-merged:
113           project: '{project}'
114           branch: 'master'
115           files: 'releases/{stream}/*'
116
117     builders:
118       - shell: !include-raw-escape:
119           - releng-release-create-venv.sh
120           - branch-or-tag.sh
121
122     publishers:
123       - email-jenkins-admins-on-failure
124
125 - parameter:
126     name: stream-parameter
127     parameters:
128       - string:
129           name: STREAM
130           default: '{stream}'
131           description: "OPNFV Stable Stream"