summaryrefslogtreecommitdiffstats
path: root/jjb/opera/opera-daily-jobs.yml
blob: d0dd0525a03650da18a1ecf5da20eecfa45fdb20 (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
88
89
90
91
92
93
94
95
96
97
98
---
- project:
    name: 'opera-daily-jobs'

    project: 'opera'

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

    #####################################
    # pod definitions
    #####################################
    pod:
      - virtual:
          slave-label: 'huawei-virtual7'
          os-version: 'xenial'
          <<: *master

    #####################################
    # jobs
    #####################################
    jobs:
      - 'opera-{pod}-daily-{stream}'

#####################################
# job templates
#####################################
- job-template:
    name: 'opera-{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: '@midnight'

    parameters:
      - project-parameter:
          project: '{project}'
          branch: '{branch}'
      - string:
          name: DEPLOY_SCENARIO
          default: os-nosdn-openo-ha
      - '{slave-label}-defaults'

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