summaryrefslogtreecommitdiffstats
path: root/jjb/functest/functest-project-jobs.yaml
blob: 5aa9e71a1a826853597c484a1b43f07a300d9fc2 (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
---
- functest-project-params: &functest-project-params
    name: 'functest-project-params'
    tag:
      - latest:
          branch: master
          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-run-tox
    builders:
      - shell: tox

- trigger:
    name: functest-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'
              branches:
                - branch-compare-type: 'ANT'
                  branch-pattern: '**/{branch}'
          skip-vote:
            successful: false
            failed: false
            unstable: false
            notbuilt: false

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

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

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

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