blob: 4c7e16aee336ebe7568114a758d014479fa641cd [file] [log] [blame]
Fatih Degirmenci0c5a4862019-03-24 18:25:37 +01001---
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#--------------------------------------------------------------------------------------
22# The jobs declared in this JJB configuration file are used for verifying patches
23# that are sent to the repositories below
24# - cloud-infra/test
25#
26# These jobs verify changes that
27# - implement new features or fix bugs to the playbooks and roles used for utilizing
28# open source test frameworks such as opnfv/functest, and opnfv/yardstick
29# - bump versions of the open source test frameworks
30#
31# These jobs are set to run on slaves with label vpod-test-ubuntu1604.
32# The slaves have
33# - Ubuntu1604 as the base distro
34# - nested virtualization
35# - internet access
36# - passwordless sudo
37# - 16 CPUs/32GB RAM/200 GB Disk
38# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
39# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
40#
41# The slaves should have a promoted version of a cloud infra scenario deployed on them.
42# Currently k8-calico-nofeature scenario is deployed on the slaves.
43#--------------------------------------------------------------------------------------
44
45- project:
46 name: 'cloud-infra-verify-test'
47
48 project: 'infra/test'
49
50 stream:
51 - 'master':
52 branch: '{stream}'
53 disabled: 'false'
54
55 os:
56 - ubuntu1804:
57 disabled: 'false'
58 distribution: 'ubuntu18'
59 - centos7:
60 disabled: 'true'
61 distribution: 'centos7'
62
63 type:
64 - virtual
65
66 jobs:
67 - 'cloud-infra-verify-test-{os}-{type}-{stream}'
68
69- job-template:
70 name: 'cloud-infra-verify-test-{os}-{type}-{stream}'
71
72 disabled: '{obj:disabled}'
73
74 concurrent: true
75
76 parameters:
77 - project-parameters:
78 project: '{project}'
79 branch: '{branch}'
80 - nordix-gerrit-parameters
81 - label:
82 name: SLAVE_LABEL
83 default: 'vpod-test-{os}'
84 description: 'Slave label to schedule this job on. These slaves have cloud infra installed on them.'
85 - string:
86 name: DISTRIBUTION
87 default: '{distribution}'
88 description: 'Distribution to use for configuring target nodes (networking etc.)'
89 - string:
90 name: TESTFW_NAME
91 default: 'opnfv/functest'
92 description: 'Test framework to use'
93 - string:
94 name: SUITE_NAME
95 default: 'healthcheck'
96 description: 'Test suite to use'
97
98 properties:
99 - logrotate
100 - build-blocker:
101 use-build-blocker: true
102 blocking-jobs:
103 - 'cloud-infra-verify-test-{os}-.*'
104 block-level: 'NODE'
105 - throttle:
106 max-per-node: 1
107 max-total: 3
108 option: project
109
110 wrappers:
111 - build-timeout:
112 timeout: 120
113 - fix-workspace-permissions
114
115 scm:
116 - git-scm-gerrit:
117 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
118 branch: '{branch}'
119 refspec: $GERRIT_REFSPEC
120
121 triggers:
122 - nordix-gerrit-trigger-patchset-created:
123 project: 'infra\/test'
124 branch: '{branch}'
125 files: '**'
126
127 builders:
128 - 'cloud-infra-verify-testfw-macro'
129
130# -------------------------------
131# builder macros
132# -------------------------------
133
134- builder:
135 name: 'cloud-infra-verify-testfw-macro'
136 builders:
137 - shell:
138 !include-raw: ./cloud-infra-test.sh
139
140# vim: set ts=2 sw=2 expandtab: