summaryrefslogtreecommitdiffstats
path: root/jjb/orchestra/orchestra-daily-jobs.yaml
blob: 7c2deaec428645e2151ad485231fda2bbae574ad (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
99
100
---
###################################
# job configuration for orchestra
###################################
- project:
    name: 'orchestra-daily-jobs'

    project: 'orchestra'

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

    # ------------------------------------------------------
    # POD, INSTALLER, AND BRANCH MAPPING
    # ------------------------------------------------------
    pod:
      - virtual:
          slave-label: 'joid-virtual'
          os-version: 'xenial'
          <<: *master

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

################################
# job template
################################
- job-template:
    name: 'orchestra-{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-nosdn-openbaton-ha
      - '{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-nosdn-openbaton-ha
                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-nosdn-openbaton-ha
                FUNCTEST_MODE=testcase
                FUNCTEST_SUITE_NAME=orchestra_ims
              node-parameters: true
              kill-phase-on: NEVER
              abort-all-job: true