summaryrefslogtreecommitdiffstats
path: root/jjb/functest/functest-kubernetes-project-jobs.yaml
blob: 9565276569242bfabb1e4a33fb252a7de91181ac (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
---
- functest-kubernetes-project-params: &functest-kubernetes-project-params
    name: 'functest-kubernetes-project-params'
    tag:
      - latest:
          branch: master
          slave: lf-virtual1
      - leguer:
          branch: stable/leguer
          slave: lf-virtual1
      - kali:
          branch: stable/kali
          slave: lf-virtual1
      - jerma:
          branch: stable/jerma
          slave: lf-virtual1
      - iruya:
          branch: stable/iruya
          slave: lf-virtual1
      - hunter:
          branch: stable/hunter
          slave: lf-virtual1

- builder:
    name: functest-kubernetes-run-tox
    builders:
      - shell: tox

- trigger:
    name: functest-kubernetes-project-patchset-created
    triggers:
      - gerrit:
          server-name: 'gerrit.opnfv.org'
          trigger-on:
            - patchset-created-event
            - comment-added-contains-event:
                comment-contains-value: 'recheck'
            - comment-added-contains-event:
                comment-contains-value: 'reverify'
          projects:
            - project-compare-type: 'ANT'
              project-pattern: 'functest-kubernetes'
              branches:
                - branch-compare-type: 'ANT'
                  branch-pattern: '**/{branch}'
          skip-vote:
            successful: false
            failed: false
            unstable: false
            notbuilt: false

- parameter:
    name: functest-kubernetes-project-slave
    parameters:
      - label:
          name: slave
          default: '{slave}'

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

- job-template:
    name: 'functest-kubernetes-run-tox-{tag}'
    triggers:
      - functest-kubernetes-project-patchset-created:
          branch: '{branch}'
    scm:
      - functest-kubernetes-project-scm:
          ref: $GERRIT_REFSPEC
    parameters:
      - functest-kubernetes-project-slave:
          slave: '{slave}'
    builders:
      - functest-kubernetes-run-tox

- project:
    name: 'functest-kubernetes-run-tox'
    <<: *functest-kubernetes-project-params
    jobs:
      - 'functest-kubernetes-run-tox-{tag}'