eiffel: Fix image name var and set harbor credentials
[infra/cicd.git] / jjb / eiffel / global-eiffel-container-build.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2020 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
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,
13 # WITHOUT 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 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - job-template:
21     name: '{project-name}-build-{distro}-{stream}-periodic'
22
23     node: 'eiffel-build-{distro}'
24
25     disabled: false
26
27     concurrent: false
28
29     properties:
30       - logrotate
31
32     parameters:
33       - project-parameters:
34           project: '{project}'
35           branch: '{branch}'
36       - string:
37           name: GIT_BASE_HTTPS
38           default: https://github.com/eiffel-community
39           description: HTTPS URL of Project Repo on GitHub to clone repo.
40       - string:
41           name: GIT_BASE_SSH
42           default: git@github.com:eiffel-community
43           description: SSH URL of Project Repo on GitHub to clone repo.
44       - string:
45           name: PROJECT_BUILD_ROOT
46           default: '{project-build-root}'
47           description: Dockerfiles are located in different paths so this sets the path to navigate in the clone.
48       - choice:
49           name: HARBOR_EIFFEL_PROJECT
50           choices:
51             - eiffel
52             - eiffel-playground
53           description: Project to push container images to. Default is eiffel. eiffel-playground is for development purposes.
54       - choice:
55           name: PODMAN_LOG_LEVEL
56           choices:
57             - error
58             - debug
59             - info
60             - warn
61             - fatal
62             - panic
63           description: Podman log level to use. Default is error.
64       - string:
65           name: NORDIX_REGISTRY
66           default: 'registry.nordix.org'
67           description: Nordix container image registry.
68
69     scm:
70       - git:
71           url: 'https://github.com/eiffel-community/$PROJECT.git'
72           branches:
73             - '*/{branch}'
74           refspec: ''
75           timeout: 15
76           per-build-tag: false
77           skip-tag: true
78           shallow-clone: false
79           use-author: false
80           ignore-notify: false
81           wipe-workspace: true
82           prune: false
83           clean:
84             after: false
85             before: false
86           choosing-strategy: 'default'
87           basedir: '$WORKSPACE'
88
89
90     triggers:
91       - pollscm:
92           cron: "H 0,8,16 * * *"
93
94     wrappers:
95       - build-timeout:
96           timeout: 10
97       - nordixinfra-harbor-creds-wrapper
98       - mask-passwords
99       - openstack:
100           single-use: True
101
102     builders:
103       - shell:
104           !include-raw-escape: ./scripts/eiffel-container-build-tag-push.sh
105
106 # vim: set ts=2 sw=2 expandtab: