Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 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: |
Fatih Degirmenci | cfca0cb | 2020-10-27 11:42:08 +0000 | [diff] [blame] | 21 | name: '{project-name}-build-merge-{distro}-{stream}' |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 22 | |
| 23 | node: 'eiffel-build-{distro}' |
| 24 | |
| 25 | disabled: false |
| 26 | |
| 27 | concurrent: false |
| 28 | |
| 29 | properties: |
| 30 | - logrotate |
Fatih Degirmenci | cfca0cb | 2020-10-27 11:42:08 +0000 | [diff] [blame] | 31 | - github: |
Fatih Degirmenci | e2a74ce | 2020-10-28 08:40:20 +0000 | [diff] [blame] | 32 | # NOTE (fdegir): url is hardcoded here since env vars in job properties |
| 33 | # do not seem to be resolved correctly, causing job no to function properly |
| 34 | url: 'https://github.com/eiffel-community/{project-git-repo}' |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 35 | |
| 36 | parameters: |
| 37 | - project-parameters: |
| 38 | project: '{project}' |
| 39 | branch: '{branch}' |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 40 | - string: |
Fatih Degirmenci | 53c73aa | 2020-11-16 13:05:47 +0000 | [diff] [blame] | 41 | name: GITHUB_BASE_URL |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 42 | default: https://github.com/eiffel-community |
| 43 | description: HTTPS URL of Project Repo on GitHub to clone repo. |
| 44 | - string: |
Fatih Degirmenci | 53c73aa | 2020-11-16 13:05:47 +0000 | [diff] [blame] | 45 | name: GITHUB_API_URL |
| 46 | default: https://api.github.com/repos/eiffel-community |
| 47 | description: API URL of Project Repo on GitHub to clone repo. |
| 48 | - string: |
Fatih Degirmenci | a580a9a | 2020-10-14 07:39:26 +0000 | [diff] [blame] | 49 | name: IMAGE_DOCKERFILE |
| 50 | default: '{image-dockerfile}' |
| 51 | description: Dockerfile to use for building the container image |
| 52 | - string: |
| 53 | name: IMAGE_NAME |
| 54 | default: '{image-name}' |
| 55 | description: Name of the container image |
| 56 | - string: |
| 57 | name: IMAGE_TAG |
| 58 | default: '{image-tag}' |
| 59 | description: Tag to apply to the container image |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 60 | - choice: |
| 61 | name: HARBOR_EIFFEL_PROJECT |
| 62 | choices: |
| 63 | - eiffel |
| 64 | - eiffel-playground |
| 65 | description: Project to push container images to. Default is eiffel. eiffel-playground is for development purposes. |
| 66 | - choice: |
| 67 | name: PODMAN_LOG_LEVEL |
| 68 | choices: |
| 69 | - error |
| 70 | - debug |
| 71 | - info |
| 72 | - warn |
| 73 | - fatal |
| 74 | - panic |
| 75 | description: Podman log level to use. Default is error. |
| 76 | - string: |
| 77 | name: NORDIX_REGISTRY |
| 78 | default: 'registry.nordix.org' |
| 79 | description: Nordix container image registry. |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 80 | |
| 81 | scm: |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 82 | - git: |
Fatih Degirmenci | e2a74ce | 2020-10-28 08:40:20 +0000 | [diff] [blame] | 83 | url: 'https://github.com/eiffel-community/{project-git-repo}.git' |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 84 | branches: |
| 85 | - '*/{branch}' |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 86 | refspec: '' |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 87 | timeout: 15 |
| 88 | per-build-tag: false |
| 89 | skip-tag: true |
| 90 | shallow-clone: false |
| 91 | use-author: false |
| 92 | ignore-notify: false |
| 93 | wipe-workspace: true |
| 94 | prune: false |
| 95 | clean: |
| 96 | after: false |
| 97 | before: false |
| 98 | choosing-strategy: 'default' |
| 99 | basedir: '$WORKSPACE' |
| 100 | |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 101 | triggers: |
Fatih Degirmenci | cfca0cb | 2020-10-27 11:42:08 +0000 | [diff] [blame] | 102 | - github |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 103 | |
| 104 | wrappers: |
| 105 | - build-timeout: |
| 106 | timeout: 10 |
Fatih Degirmenci | 72e7188 | 2020-10-05 11:54:59 +0000 | [diff] [blame] | 107 | - nordixinfra-harbor-creds-wrapper |
Fatih Degirmenci | 53c73aa | 2020-11-16 13:05:47 +0000 | [diff] [blame] | 108 | - nordixinfra-eiffel-github-token |
Fatih Degirmenci | 077de1a | 2020-10-05 07:49:52 +0000 | [diff] [blame] | 109 | - mask-passwords |
| 110 | - openstack: |
Fatih Degirmenci | e2a74ce | 2020-10-28 08:40:20 +0000 | [diff] [blame] | 111 | single-use: true |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 112 | |
| 113 | builders: |
Fatih Degirmenci | 5960174 | 2020-10-06 13:59:42 +0000 | [diff] [blame] | 114 | - '{project-build-macro}' |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 115 | |
Fatih Degirmenci | 0ee3a58 | 2020-11-13 09:47:38 +0000 | [diff] [blame] | 116 | publishers: |
| 117 | - postbuildscript: |
| 118 | builders: |
| 119 | - role: SLAVE |
| 120 | build-on: |
| 121 | - SUCCESS |
| 122 | - FAILURE |
| 123 | - ABORTED |
| 124 | - NOT_BUILT |
| 125 | - UNSTABLE |
| 126 | build-steps: |
| 127 | - 'eiffel-global-pr-comment-macro' |
| 128 | |
Fatih Degirmenci | 12206ba | 2020-10-02 14:42:49 +0000 | [diff] [blame] | 129 | # vim: set ts=2 sw=2 expandtab: |