summaryrefslogtreecommitdiffstats
path: root/jjb/cirv/cirv.yaml
blob: e628f43bdd0b2c4df232fec33990bc5f11d7454a (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
---
- cirv-project-params: &cirv-project-params
    name: 'cirv-project-params'
    tag:
      - latest:
          branch: master
          slave: lf-build2

- builder:
    name: cirv-run-tox
    builders:
      - shell: tox

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

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

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

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

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