3 # Copyright (c) 2019 Intel Corporation. All rights reserved.
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 - daaas_job_boiler_plate: &daaas_job_boiler_plate
19 name: daaas_job_boiler_plate
22 build-days-to-keep: 30
25 project-type: freestyle
26 submodule-recursive: true
31 - lf-infra-properties:
32 build-days-to-keep: "{build-days-to-keep}"
35 - lf-infra-parameters:
39 lftools-version: "{lftools-version}"
42 name: ARCHIVE_ARTIFACTS
43 default: "{archive-artifacts}"
44 description: Artifacts to archive to the logs server.
48 build-timeout: "{build-timeout}"
49 jenkins-ssh-credential: "{jenkins-ssh-credential}"
52 - lf-infra-gerrit-scm:
53 jenkins-ssh-credential: "{jenkins-ssh-credential}"
54 git-url: "{git-url}/{project}.git"
55 refspec: "$GERRIT_REFSPEC"
56 branch: "$GERRIT_BRANCH"
57 submodule-recursive: "{submodule-recursive}"
58 submodule-timeout: "{submodule-timeout}"
59 submodule-disable: false
60 choosing-strategy: "gerrit"
63 - shell: "{obj:script}"
72 # Job template for verify jobs
74 name: "{project-name}-{stream}-{type}-verify"
75 <<: *daaas_job_boiler_plate
79 server-name: "{gerrit-server-name}"
81 - patchset-created-event:
82 exclude-drafts: "false"
83 exclude-trivial-rebase: "false"
84 exclude-no-code-change: "false"
85 - draft-published-event
86 - comment-added-contains-event:
87 comment-contains-value: "recheck"
88 - comment-added-contains-event:
89 comment-contains-value: "reverify"
91 - project-compare-type: "ANT"
92 project-pattern: "{project}"
94 - branch-compare-type: "ANT"
95 branch-pattern: "**/{branch}"
97 - compare-type: REG_EXP
98 pattern: ".*/?{path}/.*"
99 disable-strict-forbidden-file-verification: "true"
100 forbidden-file-paths:
103 readable-message: true
106 # Job template for merge jobs
108 name: "{project-name}-{stream}-{type}-merge"
109 <<: *daaas_job_boiler_plate
111 gerrit_merge_triggers:
112 - change-merged-event
113 - comment-added-contains-event:
114 comment-contains-value: remerge$
118 server-name: "{gerrit-server-name}"
119 trigger-on: "{obj:gerrit_merge_triggers}"
121 - project-compare-type: "ANT"
122 project-pattern: "{project}"
124 - branch-compare-type: "ANT"
125 branch-pattern: "**/{branch}"
127 - compare-type: REG_EXP
128 pattern: ".*/?{path}/.*"
129 disable-strict-forbidden-file-verification: "true"
130 forbidden-file-paths:
133 readable-message: true