b0cab355f386f39e8174abdcd05158c9cf51ed20
[infra/cicd.git] / jjb / airship / job_capi_bm_integration_tests_centos.yml
1 ---
2 #
3 # ============LICENSE_START=======================================================
4 #  Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
21 # Description:
22 # ============
23 # This file contains job template definition for K8s CAPI Baremetal integration tests.
24 # This job can be triggered manually or through a Github pull request. It creates a
25 # pipeline job. The pipeline scripts are maintained in Airship CI repository.
26
27 - job-template:
28     id: capi_bm_integration_tests_centos
29     name: '{job_prefix}_{name}_integration_test_centos'
30     description: "K8s CAPI baremetal integration tests for {repo[org]}/{repo[name]} on CentOS. "
31     project-type: pipeline
32     defaults: global
33     disabled: False
34     concurrent: True
35     parameters:
36     - string:
37         name: PROJECT_REPO_ORG
38         default: '{repo[org]}'
39         description: 'Project github repo org name'
40     - string:
41         name: PROJECT_REPO_NAME
42         default: '{repo[name]}'
43         description: 'Project github repo name'
44     - string:
45         name: ghprbActualCommit
46         default: 'master'
47         description: 'CI Repo branch for triggering manual build'
48     - string:
49         name: DISTRIBUTION
50         default: 'centos'
51         description: 'Distribution to use for the tests. Can be ubuntu or centos'
52     - string:
53         name: CAPI_VERSION
54         default: 'v1alpha1'
55         description: 'Cluster API version. Can be v1alpha1 or v1alpha2'
56     - string:
57         name: TARGET_NODE_OS
58         default: 'Centos'
59         description: 'Distribution to use for the target host.'
60     - string:
61         name: TARGET_NODE_MEMORY
62         default: 8192
63         description: 'RAM size of the target host.'
64
65     properties:
66     - build-discarder:
67         days-to-keep: 30
68         num-to-keep: 300
69         artifact-days-to-keep: -1
70         artifact-num-to-keep: -1
71     - github:
72         url: https://github.com/{repo[org]}/{repo[name]}
73
74     triggers:
75     - github-pull-request:
76         admin-list:
77           - '{ci_github_admin_user}'
78         org-list: "{ci_github_whitelist_org}"
79         cron: 'H/5 * * * *'
80         auth-id: "{ci_ghprb_auth_id}"
81         trigger-phrase: '/test-centos-integration'
82         skip-build-phrase: '/skip-test'
83         only-trigger-phrase: True
84         github-hooks: False
85         permit-all: False
86         auto-close-on-fail: False
87         allow-whitelist-orgs-as-admins: True
88         white-list-target-branches:
89           - 'master'
90           - 'v1alpha1'
91         status-context: "test-centos-integration"
92         success-status: "Passed"
93         failure-status: "Failed"
94         error-status: "Error"
95         cancel-builds-on-update: True
96     pipeline-scm:
97       scm:
98       - git:
99           url: https://github.com/{ci_github_repo}.git
100           credentials-id: "{ci_github_jenkins_credentials_id}"
101           branches:
102             - '{branch|master}'
103           name: 'origin'
104           refspec: '+refs/heads/*:refs/remotes/origin/*'
105           wipe-workspace: True
106           honor-refspec: True
107           shallow-clone: False
108       script-path: "{ci_github_pipeline}"
109       lightweight-checkout: False