summaryrefslogtreecommitdiffstats
path: root/jjb/ovn4nfv/ovn4nfv-daily-jobs.yml
blob: ed6df41e32a48ac1934ac2d897a944b5fb8fec89 (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
- project:
    name: 'ovn4nfv-daily-jobs'

    project: 'ovn4nfv'

    master: &master
        stream: master
        branch: '{stream}'
        gs-pathname: ''
        disabled: false

    pod:
        - virtual:
            slave-label: 'joid-virtual'
            os-version: 'xenial'
            <<: *master

    jobs:
        - 'ovn4nfv-{pod}-daily-{stream}'

- job-template:
    name: 'ovn4nfv-{pod}-daily-{stream}'

    project-type: multijob

    disabled: '{obj:disabled}'

    concurrent: false

    properties:
        - logrotate-default
        - throttle:
            enabled: true
            max-total: 1
            max-per-node: 1
            option: 'project'

    scm:
        - git-scm

    wrappers:
        - ssh-agent-wrapper

        - timeout:
            timeout: 240
            fail: true

    triggers:
         - timed: '@daily'

    parameters:
        - project-parameter:
            project: '{project}'
            branch: '{branch}'
        - string:
            name: DEPLOY_SCENARIO
            default: os-ovn-nofeature-noha
        - '{slave-label}-defaults'

    builders:
        - description-setter:
            description: "Built on $NODE_NAME"
        - multijob:
            name: deploy
            condition: SUCCESSFUL
            projects:
                - name: 'joid-deploy-{pod}-daily-{stream}'
                  current-parameters: false
                  predefined-parameters: |
                    DEPLOY_SCENARIO=os-ovn-nofeature-noha
                    COMPASS_OS_VERSION=xenial
                  node-parameters: true
                  kill-phase-on: FAILURE
                  abort-all-job: true
        - multijob:
            name: functest
            condition: SUCCESSFUL
            projects:
                - name: 'functest-joid-{pod}-daily-{stream}'
                  current-parameters: false
                  predefined-parameters: |
                    DEPLOY_SCENARIO=os-ovn-nofeature-ha
                    FUNCTEST_SUITE_NAME=ovn4nfv_test_suite
                  node-parameters: true
                  kill-phase-on: NEVER
                  abort-all-job: true