summaryrefslogtreecommitdiffstats
path: root/jjb/functest/xtesting-project-jobs.yaml
blob: 1a42d413f4a0c7c8c9d5cbdedb9f587ef3dd5010 (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
---
- xtesting-project-params: &xtesting-project-params
    name: 'xtesting-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: xtesting-run-tox
    builders:
      - shell: tox

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

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

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

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

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