blob: 4956258ee5dc7ab9fc7be1e9aa464326459f091f [file] [log] [blame]
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -08001---
Zack Williams7468c362018-04-06 09:52:30 -07002# CORD GLOBAL jenkins job builder (JJB) defaults
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -08003
4- defaults:
5 name: global
6
Matteo Scandolob4f81882020-07-30 09:45:15 -07007 # used to enable disable jobs if the job template contains
8 # disabled: '{disable-job}'
9 disable-job: false
10
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080011 # lftools
Zack Williams26846522019-10-04 11:49:27 -070012 lftools-version: '~=0.26.2'
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080013
Zack Williamsccc14742020-01-22 13:15:59 -070014 # LF templates require these to be set in later versions of global-jjb
15 submodule-disable: 'false'
16 submodule-timeout: 10
17
Zack Williams8e69efd2018-06-13 15:05:18 -070018 # name of the SSH key to use in most cases
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080019 jenkins-ssh-credential: 'cord-jenkins-ssh'
Zack Williams8e69efd2018-06-13 15:05:18 -070020 gerrit-ssh-credential: 'gerrit-jenkins-user'
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080021
Zack Williams7468c362018-04-06 09:52:30 -070022 # by default, don't depend on other jobs
23 dependency-jobs: ''
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080024
Zack Williams15a31c82018-08-29 15:10:03 -070025 # SCM checkout locations within Jenkins Workspace
26 destination-dir: ''
27 basedir: ''
28
Zack Williamsb3292082019-10-11 17:15:18 -070029 # used to rename jobs as is required, if running same job more than once
30 # for a project
Zack Williams9d68aa32018-07-12 11:50:37 -070031 name-extension: ''
32
Zack Williams7468c362018-04-06 09:52:30 -070033 # How long to keep builds and artifacts
34 build-days-to-keep: 60
35 artifact-num-to-keep: 30
Zack Williamsac984412018-04-04 15:39:45 -070036
Matteo Scandoloa0e6f3f2020-11-12 17:13:20 -080037 # How long to keep builds and artifacts for jobs that generate a lot of artifacts
38 big-build-days-to-keep: 5
39 big-artifact-num-to-keep: 5
40
Zack Williams7468c362018-04-06 09:52:30 -070041 # list of artifacts to archive
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080042 archive-artifacts: ''
43
Zack Williams7468c362018-04-06 09:52:30 -070044 # build timeout (minutes)
Zack Williams8e518af2019-10-23 08:45:09 -070045 build-timeout: 20
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080046
Zack Williams641d1492018-08-17 13:31:53 -070047 # timed trigger defaults, crontab syntax
48 # H = random value hashed by name of job
49 every-hour: "H * * * *"
50 every-four-hours: "H */4 * * *"
51 every-six-hours: "H */6 * * *"
52 every-eight-hours: "H */8 * * *"
53 twice-a-day: "H */12 * * *"
54 once-a-day: "H 0 * * *"
55
Zack Williamsb3292082019-10-11 17:15:18 -070056 # The most frequently used type of Build Executor. Name is per the LF global-jjb.
57 # See build node types under "Cloud > Amazon EC2" at
Zack Williamsf4c9c402018-06-27 14:58:43 -070058 # https://jenkins.opencord.org/configure
Zack Williams7468c362018-04-06 09:52:30 -070059 build-node: ubuntu16.04-basebuild-1c-1g
Linux Foundation Administrators14b8edb2018-01-25 13:00:42 -080060
Zack Williams7468c362018-04-06 09:52:30 -070061 # CORD Gerrit server definition, set in configuration
62 gerrit-server-name: 'CORD Gerrit'
63
64 # URL for Gerrit server, for use with `repo`
Zack Williamsc27ca2d2018-04-11 13:16:45 -070065 gerrit-server-url: 'https://gerrit.opencord.org'
Zack Williams7468c362018-04-06 09:52:30 -070066
67 # name of the manifest git repos used with the `repo` cli tool
68 cord-repo-manifest: manifest.git
69 cordqa-manifest-repo: qa-manifest.git
Kailashaad71012019-08-27 10:36:53 -070070 go-manifest-repo: go-manifest.git
71 voltha-test-manifest-repo: voltha-test-manifest.git
Zack Williams7468c362018-04-06 09:52:30 -070072
Zack Williams5e09c952018-06-12 10:19:48 -070073 # default email address to send job failure messages
74 failure-email-address: 'cord-dev@opencord.org'
75
Luca Preteae7fc492018-12-13 16:00:37 -080076 # Projects containing helm-charts
Jeremy Ronquillo1860ef52020-06-24 09:55:32 -070077 helm-charts-projects-regexp: '^(?!aether)(.*helm-charts|cord-platform|seba)$'
Luca Preteae7fc492018-12-13 16:00:37 -080078
Zack Williamsc27ca2d2018-04-11 13:16:45 -070079 # regexp for gerrit triggers
80 # list of supported branches, for branch-regexp
Kailash40e1d0f2019-03-01 13:26:49 -080081 all-branches-regexp: '.*'
Matteo Scandolo06e15d92020-09-23 16:38:12 -070082 supported-branches-regexp: '^(master|cord-7.0|cord-6.1|seba-1.0|voltha-2.3|voltha-2.4|voltha-2.5)$'
Kailash Khalasica590552018-05-24 15:09:42 -070083 legacy-branches-regexp: '^(cord-5.0|cord-4.1|cord-4.0)$'
Andy Bavier84971ef2020-07-01 15:37:29 -070084 modern-branches-regexp: '^(master|cord-7.0|cord-6.1|cord-6.0|seba-1.0|voltha-2.3|voltha-2.4)$'
Zack Williams48dd14a2019-07-12 14:40:53 -070085 platform-branches-regexp: '^(master|cord-7.0|cord-6.1)$'
86 seba-branches-regexp: '^(master|cord-7.0|seba-1.0)$'
Zack Williamsac984412018-04-04 15:39:45 -070087
Zack Williams3bf60d52019-06-07 12:56:10 -070088 # matchs all project repos
89 all-projects-regexp: '.*'
90
Zack Williams5fee0022018-06-11 14:42:54 -070091 # for matching repos that build docker images with imagebuilder
Zack Williams599f6b72019-04-16 17:05:34 -070092 # As of 2019-04-16 most of the services actively being developed use the
93 # make-based image generation process managed by the `docker-publish` job
94 imagebuilder-projects-regexp: '^(cord-tester|mcord|ecord|acordion|addressmanager|epc-service|exampleservice|globalxos|hippie-oss|hss_db|hypercache|internetemulator|monitoring|openstack|progran|sdn-controller|templateservice|vEE|vEG|vBBU|venb|vHSS|vMME|vnaas|vPGWC|vPGWU|vsg|vsg-hw|vSGW|vSM|vspgwc|vspgwu|vtn-service|vtr)$'
Zack Williams5fee0022018-06-11 14:42:54 -070095
Zack Williams66500002018-09-06 15:29:05 -070096 # strictness of version checks
97 semver-strict: 0
98
Zack Williams07949bb2018-07-20 07:29:15 -070099 # matching repos that should be version tagged by the version-tag job
100 # (basically the same as imagebuilder projects + helm charts + tools
Jeremy Ronquillo56ead082020-07-23 11:19:16 -0700101 version-tag-projects-regexp: '^(?!aether)(xos.*|.*helm-charts|automation-tools|cord-tester|chameleon|rcord|mcord|ecord|acordion|addressmanager|epc-service|exampleservice|fabric.*|globalxos|hippie-oss|hss_db|hypercache|internetemulator|kubernetes-service|monitoring|olt-service|onos-service|openstack|progran|sdn-controller|simpleexampleservice|templateservice|vEE|vEG|vBBU|venb|vHSS|vMME|vnaas|vPGWC|vPGWU|vrouter|vsg|vsg-hw|vSGW|vSM|vspgwc|vspgwu|vtn-service|vtr|.*-workflow-driver|ves-agent|voltha-bbsim|openolt|sadis-server|kafka-topic-exporter|pyvoltha||plyxproto|voltha-protos|alpine-grpc-base|cordctl|voltha-go|voltha-onos|device-management|cord-workflow.*|voltha-system-tests|openairinterface|omec-.*|bbsim|omci-sim|ponsim|pppoel2relay|voltha-api-server|aaa|config|dhcpl2relay|igmp|igmpproxy|kafka-onos|mcast|olt|sadis|vtn|voltha-.*-adapter.*|voltha-lib-go|voltha-python-base|voltha-docker-tools|mn-stratum-siab|ofagent.*|bng|voltctl|openolt-scale-tester|nem-ondemand-proxy|multifabric|openolt-test|omci-lib-go|kind-voltha|voltha-docs|mac-learning|goloxi|device-management-interface)$'
Zack Williams07949bb2018-07-20 07:29:15 -0700102
Zack Williamsab85b982020-01-08 11:49:37 -0700103 # List of all repos that contribute to the CORD guide
104 cord-guide-projects-regexp: '^(att-workflow-driver|cord-tester|cordctl|exampleservice|fabric|fabric-crossconnect|hippie-oss|kubernetes-service|olt-service|onos-service|openolt|openstack|rcord|simpleexampleservice|vrouter|vtn-service|xos|xos-gui|xos-tosca)$'
105
Zack Williams5d8f2532019-02-14 12:20:51 -0700106 # PyPI related publishing variables
107 #
Zack Williams5aa37e12019-02-13 13:28:29 -0700108 # Pipe-separated list of directories relative to $WORKSPACE containing
Zack Williams5d8f2532019-02-14 12:20:51 -0700109 # python modules to publish to PyPI. Default is current directory which is
110 # correct for simple modules
Zack Williams5aa37e12019-02-13 13:28:29 -0700111 pypi-module-dirs: '.'
112
113 # Which PyPI index to use. Corresponds to values in ~/.pypirc
Zack Williams5d8f2532019-02-14 12:20:51 -0700114 # 'pypi' and 'testpypi' are current options. Default to testpypi, override
115 # in the job once testing is completed
Zack Williams5aa37e12019-02-13 13:28:29 -0700116 pypi-index: 'testpypi'
117
Zack Williams96fecf02019-03-27 13:52:01 -0700118 # Commands to run within the root of the checked out repo before running
119 # the `python setup.py sdist` to generate the distribution.
120 # Primarily used for autogenerating code before publishing a repo
121 pypi-prep-commands: ''
122
Zack Williamse16a9bd2019-03-21 23:02:24 -0700123 # Name of the Docker repository (usually on DockerHub) that is the
124 # destination for images to be pushed to after building.
125 # Default is invalid - must be specified on every job.
126 docker-repo: 'default-and-invalid'
127
Zack Williams38126df2019-03-21 23:02:24 -0700128 # URL of the Docker registry (server running a docker registry) that is the
129 # destination for images to be pushed to after building. If set, must
130 # include trailing slash as a separator before the repo name.
131 # Default is blank, which maps to DockerHub.
132 docker-registry: ''
133
Zack Williamsc27ca2d2018-04-11 13:16:45 -0700134 # for matching files with file-include-regexp
135 all-files-regexp: '.*'
Zack Williams698e5d12018-12-18 16:52:39 -0700136
137 # regex to allow docs-only patchsets w/version bumps to skip code-level
138 # tests. Have to also ignore the commit message on negative match,
139 # per: https://issues.jenkins-ci.org/browse/JENKINS-19891
140 code-files-regexp: '^(?!docs|VERSION|\/COMMIT_MSG).*$'
Kailash672d2c72019-02-14 09:31:24 -0800141 api-test-files-regexp: '^(?!docs|VERSION|\/COMMIT_MSG|Jenkinsfile-*).*$'
Zack Williams698e5d12018-12-18 16:52:39 -0700142
hwchiu9140fd22019-10-10 15:48:30 -0700143 # Jenkins SSH host doc publisher
Kailash Khalasica590552018-05-24 15:09:42 -0700144 docs-ssh-host: 'guide.opencord.org'
Zack Williams642e5f72018-06-05 13:24:13 -0700145 docs-ssh-host-key: 'guide.opencord.org,52.9.82.207 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFHwOY3/8GucdKzBngH/FC08nHac/RJ/OheZp2+5EpOPXZG9zQW2YUbXH5A9pO76lI5CG3z3+huG62xEGo99UQU='
146
Kailasha10e39f2019-03-15 10:14:14 -0700147 # siab helm-charts
Andy Bavier86737b52019-04-19 16:48:36 -0700148 siab-projects-regexp: '^(xos-core/.*|xos-profiles/seba-services/.*|xos-profiles/base-kubernetes/.*|xos-profiles/ponsim-pod/.*|workflows/att-workflow/.*|voltha/.*|onos/.*|mininet/.*|configs/seba-ponsim.yaml)$'
Zack Williams0cb78462019-04-09 18:13:28 -0700149
150 # Optionally allow JUnit results to be empty when test framework is set up,
Zack Williams3715d582020-02-24 10:40:27 -0700151 # but no tests exist. Default behavior is to fail when test results are
152 # empty. Also will not vote if no test output exists - good for repos where
153 # tests or test output generation may not yet exist.
Zack Williams0cb78462019-04-09 18:13:28 -0700154 junit-allow-empty-results: false
Zack Williamscee76d22019-04-29 13:08:20 -0700155
Zack Williams3715d582020-02-24 10:40:27 -0700156 # Allow xunit to not vote if no test files exist. Default is true because
157 # jUnit is the more commonly supported output format.
158 xunit-skip-if-no-test-files: true
159
Zack Williamscee76d22019-04-29 13:08:20 -0700160 # Unit test targets
161 # List of targets to run when testing a patchset, run with make or similar
162 # defaults to just 'test', multiple targets should be space separated
163 unit-test-targets: 'test'
164
165 # whether to "keep going" on multiple tests if one fails
166 # maps to the `-k` option passed to make in make-unit.yaml
167 unit-test-keep-going: false
168
169 # golang specific variables
170 # dest-gopath handles checking out patchsets and putting them into a GOPATH
171 # This portion of the path should be included: `$GOPATH/src/<dest-gopath>/<project>"
172 # If blank, golang related variables won't be set
173 dest-gopath: ''
Zack Williamsc1d6a5e2019-05-06 16:35:58 -0700174
175 # github organization
Zack Williams27cd3e52018-09-18 16:44:50 -0700176 # Specifies the github organization to operate on. Default is blank which
177 # may either be invalid, or specify that gerrit should be used instead.
178 # Currently used with: synopsys detect, github-release
Zack Williamsc1d6a5e2019-05-06 16:35:58 -0700179 github-organization: ''
180
Zack Williams27cd3e52018-09-18 16:44:50 -0700181 # release targets
182 # List of targets run when creating a software release, run with make or
183 # similar. Default is "release", multiple targets may be space separated
184 # (when using make).
185 release-targets: 'release'
186
187 # artifact glob
188 # Shell glob expression used to select which files are included as binaries
189 # in a release.
190 # Currently used with: github-release
191 artifact-glob: ''
192
Zack Williams234dc922019-08-30 17:03:57 -0700193 # JDK distribution to use
194 # Give the version of the JDK to use when building
195 # Parameter is used with `update-java-alternatives --set <jdk-distribution>`
196 jdk-distribution: 'java-11-amazon-corretto'
hwchiuf4a77ce2019-09-06 17:15:21 -0700197
198 # skip directories
199 # Used to skip directories in supported tests
200 skip-dirs: ''
Matteo Scandolo3aba73a2019-09-27 09:03:38 -0700201
202 # maintainers
203 # Used to notify users in supported tests
204 maintainers: 'zdw@opennetworking.org'
pierventref48ebc12020-07-17 16:01:32 +0200205
206 # karaf-home
207 # Use to grab the logs or onos-diagnostics
208 karaf-home: 'apache-karaf-4.2.9'