blob: 32818efea258d4419012e919e456a398aa857839 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---
- xtesting-buildparameters: &xtesting-buildparameters
name: 'xtesting-buildparameters'
parameters:
- string:
name: branch
default: '{branch}'
- xtesting-projectparameters: &xtesting-projectparameters
name: 'xtesting-projectparameters'
current-parameters: true
- scm:
name: xtesting-gerrit
scm:
- git:
url: https://gerrit.opnfv.org/gerrit/functest-xtesting
refspec: '+refs/changes/*:refs/changes/*'
branches:
- ${branch}
- job-template:
name: '{repo}-xtesting-{tag}-build'
<<: *xtesting-buildparameters
scm:
- xtesting-gerrit
builders:
- shell: |
cd docker
docker build \
--pull=false --no-cache --force-rm=true \
--build-arg BRANCH=${{branch}} \
-t {repo}/xtesting:{tag} .
- project:
name: '{repo}-xtesting-{tag}-build'
jobs:
- '{repo}-xtesting-{tag}-build'
- job-template:
name: '{repo}-xtesting-{tag}-gate'
project-type: multijob
<<: *xtesting-buildparameters
builders:
- multijob:
name: build container
projects:
- name: '{repo}-xtesting-{tag}-build'
<<: *xtesting-projectparameters
- multijob:
name: samples
projects:
- name: '{repo}-xtesting-first-{tag}-run'
- name: '{repo}-xtesting-second-{tag}-run'
- name: '{repo}-xtesting-third-{tag}-run'
- name: '{repo}-xtesting-fourth-{tag}-run'
- name: '{repo}-xtesting-fifth-{tag}-run'
- project:
name: '{repo}-xtesting-{tag}-gate'
jobs:
- '{repo}-xtesting-{tag}-gate'
|