summaryrefslogtreecommitdiffstats
path: root/jjb/storperf/storperf-daily-jobs.yaml
blob: b5f510c1d303e12dce7be7a8a1231604a648ef36 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
---
###################################
# job configuration for storperf
###################################
- project:
    name: storperf-daily

    project: storperf

    # -------------------------------
    # BRANCH ANCHORS
    # -------------------------------
    master: &master
      stream: master
      branch: '{stream}'
      gs-pathname: ''
      docker-tag: 'latest'
    hunter: &hunter
      stream: hunter
      branch: 'stable/{stream}'
      gs-pathname: '/{stream}'
      disabled: false
      docker-tag: 'stable'
    # -------------------------------
    # POD, INSTALLER, AND BRANCH MAPPING
    # -------------------------------
    #    Installers using labels
    #            CI PODs
    # This section should only contain the installers
    # that have been switched using labels for slaves
    # -------------------------------
    pod:
      # # fuel CI PODs
      # - baremetal:
      #     slave-label: fuel-baremetal
      #     installer: fuel
      #     <<: *master
      # - virtual:
      #     slave-label: fuel-virtual
      #     installer: fuel
      #     <<: *master
      # # joid CI PODs
      # - baremetal:
      #     slave-label: joid-baremetal
      #     installer: joid
      #     <<: *master
      # - virtual:
      #     slave-label: joid-virtual
      #     installer: joid
      #     <<: *master
      # # apex CI PODs
      # - virtual:
      #     slave-label: apex-virtual-master
      #     installer: apex
      #     <<: *master
      - baremetal:
          slave-label: apex-baremetal-master
          installer: apex
          <<: *master
      - baremetal:
          slave-label: apex-baremetal-master
          installer: apex
          <<: *hunter
    ## armband CI PODs
    # - armband-baremetal:
    #     slave-label: armband-baremetal
    #     installer: fuel
    #     <<: *master
    # - armband-virtual:
    #     slave-label: armband-virtual
    #     installer: fuel
    #     <<: *master
    ## daisy CI PODs
    # - baremetal:
    #     slave-label: daisy-baremetal
    #     installer: daisy
    #     <<: *master
    # - virtual:
    #     slave-label: daisy-virtual
    #     installer: daisy
    #     <<: *master

    jobs:
      - 'storperf-{installer}-{pod}-daily-{stream}'

################################
# job template
################################
- job-template:
    name: 'storperf-{installer}-{pod}-daily-{stream}'

    concurrent: true

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

    wrappers:
      - build-name:
          name: '$BUILD_NUMBER Scenario: $DEPLOY_SCENARIO'
      - timeout:
          timeout: '45'
          abort: true
      - fix-workspace-permissions

    parameters:
      - project-parameter:
          project: '{project}'
          branch: '{branch}'
      - '{installer}-defaults'
      - '{slave-label}-defaults'
      - string:
          name: DEPLOY_SCENARIO
          default: 'os-odl_l2-nofeature-ha'
      - string:
          name: DOCKER_TAG
          default: '{docker-tag}'
          description: 'Tag to pull docker image'
      - string:
          name: CLEAN_DOCKER_IMAGES
          default: 'false'
          description: 'Remove downloaded docker images (opnfv/storperf*:*)'
      - string:
          name: GS_PATHNAME
          default: '{gs-pathname}'
          description: "Version directory where the opnfv documents will be stored in gs repository"
      - string:
          name: DISK_TYPE
          default: 'HDD'
          description: 'The type of hard disk that Cinder uses'
      - string:
          name: VOLUME_SIZE
          default: '2'
          description: 'Size of Cinder volume (in GB)'
      - string:
          name: WORKLOADS
          default: 'rw'
          description: 'Workloads to run'
      - string:
          name: BLOCK_SIZES
          default: '16384'
          description: 'Block sizes for VM I/O operations'
      - string:
          name: QUEUE_DEPTHS
          default: '4'
          description: 'Number of simultaneous I/O operations to keep active'
      - string:
          name: STEADY_STATE_SAMPLES
          default: '10'
          description: 'Number of samples to use (1 per minute) to measure steady state'
      - string:
          name: TEST_CASE
          choices:
            - 'snia_steady_state'
          description: 'The test case to run'

    scm:
      - git-scm

    builders:
      - description-setter:
          description: "Built on $NODE_NAME"
      - 'storperf-daily-builder'

########################
# builder macros
########################
- builder:
    name: storperf-daily-builder
    builders:
      - shell: |
          #!/bin/bash

          cd $WORKSPACE
          ./ci/daily.sh