summaryrefslogtreecommitdiffstats
path: root/ci/gate.yaml
blob: 2efea236b5d5a59c55f84567d4eb2ebaa56e1d24 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
- functest-kubernetes-buildparameters: &functest-kubernetes-buildparameters
    name: 'functest-kubernetes-buildparameters'
    parameters:
      - string:
          name: branch
          default: '{branch}'

- projectparameters: &functest-kubernetes-projectparameters
    name: 'functest-kubernetes-projectparameters'
    current-parameters: true

- scm:
    name: functest-kubernetes-gerrit
    scm:
      - git:
          url: https://gerrit.opnfv.org/gerrit/functest-kubernetes
          refspec: '+refs/changes/*:refs/changes/*'
          branches:
            - ${branch}

- job-template:
    name: '{repo}-functest-kubernetes-{container}-{tag}-build'
    <<: *functest-kubernetes-buildparameters
    scm:
      - functest-kubernetes-gerrit
    builders:
      - shell: |
          cd docker/$(echo {container} |cut -d\- -f 2)
          docker build \
            --pull=false --no-cache --force-rm=true \
            --build-arg BRANCH=${{branch}} \
            -t {repo}/functest-kubernetes-{container}:{tag} .

- project:
    name: '{repo}-functest-kubernetes-{container}-{tag}-build'
    container:
      - core
      - healthcheck
      - smoke
      - features
    jobs:
      - '{repo}-functest-kubernetes-{container}-{tag}-build'

- job-template:
    name: '{repo}-functest-kubernetes-{tag}-build'
    project-type: multijob
    <<: *functest-kubernetes-buildparameters
    builders:
      - multijob:
          name: build functest-kubernetes-core
          projects:
            - name: '{repo}-functest-kubernetes-core-{tag}-build'
              <<: *functest-kubernetes-projectparameters
      - multijob:
          name: build functest-kubernetes-healthcheck
          projects:
            - name: '{repo}-functest-kubernetes-healthcheck-{tag}-build'
              <<: *functest-kubernetes-projectparameters
      - multijob:
          name: build all remaining contrainers
          projects:
            - name: '{repo}-functest-kubernetes-smoke-{tag}-build'
              <<: *functest-kubernetes-projectparameters
            - name: '{repo}-functest-kubernetes-features-{tag}-build'
              <<: *functest-kubernetes-projectparameters

- project:
    name: '{repo}-functest-kubernetes-{tag}-build'
    jobs:
      - '{repo}-functest-kubernetes-{tag}-build'

- job-template:
    name: '{repo}-functest-kubernetes-{tag}-gate'
    project-type: multijob
    <<: *functest-kubernetes-buildparameters
    builders:
      - multijob:
          name: build containers
          projects:
            - name: '{repo}-functest-kubernetes-{tag}-build'
              <<: *functest-kubernetes-projectparameters
      - multijob:
          name: basics tests
          projects:
            - name: '{repo}-functest-kubernetes-healthcheck-{tag}-run'
      - multijob:
          name: advanced tests
          projects:
            - name: '{repo}-functest-kubernetes-smoke-{tag}-run'
            - name: '{repo}-functest-kubernetes-features-{tag}-run'

- project:
    name: '{repo}-functest-kubernetes-{tag}-gate'
    jobs:
      - '{repo}-functest-kubernetes-{tag}-gate'