blob: 08e62b52e4d451886cf0109f405bac4fb0b2e4a3 [file] [log] [blame]
Scott Bakerff887712020-04-29 13:39:41 -07001---
2# device-management tests
3
Scott Bakerff887712020-04-29 13:39:41 -07004- job-template:
5 id: 'device-management-patch-test'
6 name: 'verify_{project}_sanity-test{name-extension}'
7 extra-helm-flags: ''
8 skip-vote: false
Matteo Scandolo37f168b2021-04-15 16:20:46 -07009 volthaSystemTestsChange: ''
10 volthaHelmChartsChange: ''
Scott Bakerff887712020-04-29 13:39:41 -070011
12 description: |
13 <!-- Managed by Jenkins Job Builder -->
14 Created by {id} job-template from ci-management/jjb/device-management.yaml <br /><br />
15 Validation for device-management using mock redfish servers
16
17 properties:
18 - cord-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
20 artifact-num-to-keep: '{artifact-num-to-keep}'
21
22 wrappers:
23 - lf-infra-wrappers:
24 build-timeout: '{build-timeout}'
25 jenkins-ssh-credential: '{jenkins-ssh-credential}'
26
27 parameters:
28 - string:
29 name: buildNode
Hung-Wei Chiuf6cbde22021-04-22 22:15:23 -070030 default: 'ubuntu18.04-basebuild-4c-8g'
Scott Bakerff887712020-04-29 13:39:41 -070031 description: 'Name of the Jenkins node to run the job on'
32
33 - string:
Matteo Scandolo37f168b2021-04-15 16:20:46 -070034 name: branch
Scott Bakerff887712020-04-29 13:39:41 -070035 default: 'master'
36 description: 'Name of the repo branch to use'
37
38 - string:
39 name: gerritProject
40 default: '$GERRIT_PROJECT'
41 description: 'Name of the Gerrit project'
42
43 - string:
Matteo Scandolo37f168b2021-04-15 16:20:46 -070044 name: gerritRefspec
45 default: '$GERRIT_REFSPEC'
46 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Scott Bakerff887712020-04-29 13:39:41 -070047
48 - string:
49 name: extraHelmFlags
50 default: '{extra-helm-flags}'
Matteo Scandoloaf402982021-05-07 11:19:06 -070051 description: 'Helm flags to pass to every helm install command'
Scott Bakerff887712020-04-29 13:39:41 -070052
Matteo Scandolo37f168b2021-04-15 16:20:46 -070053 - string:
54 name: volthaSystemTestsChange
55 default: '{volthaSystemTestsChange}'
56 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
57
58 - string:
59 name: volthaHelmChartsChange
60 default: '{volthaHelmChartsChange}'
61 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/79/18779/13"'
62
Scott Bakerff887712020-04-29 13:39:41 -070063 project-type: pipeline
64 concurrent: true
65
66 dsl: !include-raw-escape: pipeline/{pipeline-script}
67
68 triggers:
69 - gerrit:
70 server-name: '{gerrit-server-name}'
71 dependency-jobs: '{dependency-jobs}'
72 silent-start: true
73 trigger-on:
74 - patchset-created-event:
75 exclude-drafts: true
76 exclude-trivial-rebase: false
77 exclude-no-code-change: true
78 - draft-published-event
79 - comment-added-contains-event:
80 comment-contains-value: '(?i)^.*recheck$'
81 projects:
82 - project-compare-type: REG_EXP
83 project-pattern: '^device-management$'
84 branches:
85 - branch-compare-type: REG_EXP
86 branch-pattern: '{branch-regexp}'
87 file-paths:
88 - compare-type: REG_EXP
89 pattern: '{all-files-regexp}'
90 skip-vote:
91 successful: '{skip-vote}'
92 failed: '{skip-vote}'
93 unstable: '{skip-vote}'
94 notbuilt: '{skip-vote}'