[validation] Build release images
[ci-management.git] / jjb / akraino-templates / akraino-icn-templates.yaml
1 ---
2 #
3 ## Copyright (c) 2019 Intel Corporation
4 ##
5 ## Licensed under the Apache License, Version 2.0 (the "License"); you may
6 ## not use this file except in compliance with the License.
7 ##
8 ## You may obtain a copy of the License at
9 ##       http://www.apache.org/licenses/LICENSE-2.0
10 ##
11 ## Unless required by applicable law or agreed to in writing, software
12 ## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 ## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ## See the License for the specific language governing permissions and
15 ## limitations under the License.
16 ##
17 #
18 - job-template:
19     id: akraino-project-stream-verify-gate
20     name: '{project-name}-{stream}-verify-{gate}'
21     archive-artifacts: >
22       **/*.log
23     build-days-to-keep: 30
24     build-timeout: 60
25     stream: master
26     gate: bashate
27     project-type: freestyle
28     submodule-recursive: true
29     node: '{build-node}'
30
31     properties:
32       - lf-infra-properties:
33           build-days-to-keep: '{build-days-to-keep}'
34
35     parameters:
36       - lf-infra-parameters:
37           project: '{project}'
38           stream: '{stream}'
39           branch: '{branch}'
40           lftools-version: '{lftools-version}'
41
42       - string:
43           name: ARCHIVE_ARTIFACTS
44           default: '{archive-artifacts}'
45           description: Artifacts to archive to the logs server.
46
47     wrappers:
48       - lf-infra-wrappers:
49           build-timeout: '{build-timeout}'
50           jenkins-ssh-credential: '{jenkins-ssh-credential}'
51
52     scm:
53       - lf-infra-gerrit-scm:
54           jenkins-ssh-credential: '{jenkins-ssh-credential}'
55           git-url: '{git-url}/{project}.git'
56           refspec: '$GERRIT_REFSPEC'
57           branch: '$GERRIT_BRANCH'
58           submodule-recursive: '{submodule-recursive}'
59           submodule-timeout: '{submodule-timeout}'
60           submodule-disable: false
61           choosing-strategy: 'gerrit'
62
63     triggers:
64       - gerrit:
65           server-name: '{gerrit-server-name}'
66           trigger-on:
67             - patchset-created-event:
68                 exclude-drafts: 'false'
69                 exclude-trivial-rebase: 'false'
70                 exclude-no-code-change: 'false'
71             - change-merged-event
72             - draft-published-event
73             - comment-added-contains-event:
74                 comment-contains-value: 'recheck'
75             - comment-added-contains-event:
76                 comment-contains-value: 'reverify'
77           projects:
78             - project-compare-type: 'ANT'
79               project-pattern: '{project}'
80               branches:
81                 - branch-compare-type: 'ANT'
82                   branch-pattern: '**/{branch}'
83               file-paths:
84                 - compare-type: ANT
85                   pattern: '**/*'
86               disable-strict-forbidden-file-verification: 'true'
87               forbidden-file-paths:
88                 - compare-type: ANT
89                   pattern: 'docs/**'
90           readable-message: true
91
92     builders:
93       - shell: 'make {gate}'
94
95     publishers:
96       - lf-infra-publish