Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 1 | --- |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 2 | # CORD GLOBAL jenkins job builder (JJB) defaults |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 3 | |
| 4 | - defaults: |
| 5 | name: global |
| 6 | |
Matteo Scandolo | b4f8188 | 2020-07-30 09:45:15 -0700 | [diff] [blame] | 7 | # used to enable disable jobs if the job template contains |
| 8 | # disabled: '{disable-job}' |
| 9 | disable-job: false |
| 10 | |
Joey Armstrong | b3a0641 | 2023-02-06 09:58:58 -0500 | [diff] [blame] | 11 | # https://docs.releng.linuxfoundation.org/projects/lftools/en/latest/commands/version.html |
| 12 | # https://docs.releng.linuxfoundation.org/projects/lftools/en/latest/release-notes.html#v0-35-11-4 |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 13 | # lftools |
Zack Williams | 2684652 | 2019-10-04 11:49:27 -0700 | [diff] [blame] | 14 | lftools-version: '~=0.26.2' |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 15 | |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 16 | # git module config |
| 17 | # LF templates require these to be set in later versions of global-jjb for git module |
| 18 | choosing_strategy: 'default' |
| 19 | submodule-disable: false |
| 20 | submodule-recursive: false |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 21 | submodule-timeout: 10 |
| 22 | |
Zack Williams | 8e69efd | 2018-06-13 15:05:18 -0700 | [diff] [blame] | 23 | # name of the SSH key to use in most cases |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 24 | jenkins-ssh-credential: 'cord-jenkins-ssh' |
Zack Williams | 8e69efd | 2018-06-13 15:05:18 -0700 | [diff] [blame] | 25 | gerrit-ssh-credential: 'gerrit-jenkins-user' |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 26 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 27 | # by default, don't depend on other jobs |
| 28 | dependency-jobs: '' |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 29 | |
Zack Williams | 15a31c8 | 2018-08-29 15:10:03 -0700 | [diff] [blame] | 30 | # SCM checkout locations within Jenkins Workspace |
| 31 | destination-dir: '' |
| 32 | basedir: '' |
| 33 | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 34 | # used to rename jobs as is required, if running same job more than once |
| 35 | # for a project |
Zack Williams | 9d68aa3 | 2018-07-12 11:50:37 -0700 | [diff] [blame] | 36 | name-extension: '' |
| 37 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 38 | # How long to keep builds and artifacts |
| 39 | build-days-to-keep: 60 |
| 40 | artifact-num-to-keep: 30 |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame] | 41 | |
Matteo Scandolo | a0e6f3f | 2020-11-12 17:13:20 -0800 | [diff] [blame] | 42 | # How long to keep builds and artifacts for jobs that generate a lot of artifacts |
Matteo Scandolo | f2bae4e | 2020-11-13 09:32:56 -0800 | [diff] [blame] | 43 | big-build-days-to-keep: 10 |
Matteo Scandolo | a0e6f3f | 2020-11-12 17:13:20 -0800 | [diff] [blame] | 44 | big-artifact-num-to-keep: 5 |
| 45 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 46 | # list of artifacts to archive |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 47 | archive-artifacts: '' |
| 48 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 49 | # build timeout (minutes) |
Zack Williams | 8e518af | 2019-10-23 08:45:09 -0700 | [diff] [blame] | 50 | build-timeout: 20 |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 51 | |
Zack Williams | 641d149 | 2018-08-17 13:31:53 -0700 | [diff] [blame] | 52 | # timed trigger defaults, crontab syntax |
| 53 | # H = random value hashed by name of job |
| 54 | every-hour: "H * * * *" |
| 55 | every-four-hours: "H */4 * * *" |
| 56 | every-six-hours: "H */6 * * *" |
| 57 | every-eight-hours: "H */8 * * *" |
| 58 | twice-a-day: "H */12 * * *" |
| 59 | once-a-day: "H 0 * * *" |
| 60 | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 61 | # The most frequently used type of Build Executor. Name is per the LF global-jjb. |
| 62 | # See build node types under "Cloud > Amazon EC2" at |
Zack Williams | f4c9c40 | 2018-06-27 14:58:43 -0700 | [diff] [blame] | 63 | # https://jenkins.opencord.org/configure |
Hung-Wei Chiu | f6cbde2 | 2021-04-22 22:15:23 -0700 | [diff] [blame] | 64 | build-node: ubuntu18.04-basebuild-1c-1g |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 65 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 66 | # CORD Gerrit server definition, set in configuration |
| 67 | gerrit-server-name: 'CORD Gerrit' |
| 68 | |
| 69 | # URL for Gerrit server, for use with `repo` |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 70 | gerrit-server-url: 'https://gerrit.opencord.org' |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 71 | gerrit-server-ssh-url: 'ssh://jenkins@gerrit.opencord.org:29418' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 72 | |
| 73 | # name of the manifest git repos used with the `repo` cli tool |
| 74 | cord-repo-manifest: manifest.git |
| 75 | cordqa-manifest-repo: qa-manifest.git |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 76 | go-manifest-repo: go-manifest.git |
| 77 | voltha-test-manifest-repo: voltha-test-manifest.git |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 78 | |
Zack Williams | 5e09c95 | 2018-06-12 10:19:48 -0700 | [diff] [blame] | 79 | # default email address to send job failure messages |
| 80 | failure-email-address: 'cord-dev@opencord.org' |
| 81 | |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 82 | # regexp for gerrit triggers |
| 83 | # list of supported branches, for branch-regexp |
Kailash | 40e1d0f | 2019-03-01 13:26:49 -0800 | [diff] [blame] | 84 | all-branches-regexp: '.*' |
Matteo Scandolo | 358bf5c | 2020-12-14 12:05:57 -1000 | [diff] [blame] | 85 | supported-branches-regexp: '^(master|cord-7.0|cord-6.1|seba-1.0|voltha-2.[0-9]+)$' |
Kailash Khalasi | ca59055 | 2018-05-24 15:09:42 -0700 | [diff] [blame] | 86 | legacy-branches-regexp: '^(cord-5.0|cord-4.1|cord-4.0)$' |
Andy Bavier | 84971ef | 2020-07-01 15:37:29 -0700 | [diff] [blame] | 87 | modern-branches-regexp: '^(master|cord-7.0|cord-6.1|cord-6.0|seba-1.0|voltha-2.3|voltha-2.4)$' |
Zack Williams | 48dd14a | 2019-07-12 14:40:53 -0700 | [diff] [blame] | 88 | platform-branches-regexp: '^(master|cord-7.0|cord-6.1)$' |
| 89 | seba-branches-regexp: '^(master|cord-7.0|seba-1.0)$' |
Matteo Scandolo | 9b644ba | 2021-04-19 11:21:07 -0700 | [diff] [blame] | 90 | kind-voltha-regexp: '^(voltha-2.6|voltha-2.7)$' |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame] | 91 | |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 92 | # matchs all project repos |
| 93 | all-projects-regexp: '.*' |
| 94 | |
Zack Williams | 6650000 | 2018-09-06 15:29:05 -0700 | [diff] [blame] | 95 | # strictness of version checks |
| 96 | semver-strict: 0 |
| 97 | |
Zack Williams | 07949bb | 2018-07-20 07:29:15 -0700 | [diff] [blame] | 98 | # matching repos that should be version tagged by the version-tag job |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 99 | version-tag-projects-regexp: '^(?!aether)(xos.*|comac-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|pppoe.*|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|mac-learning|goloxi|device-management-interface|bbsim-sadis-server|olttopology|opendm-agent|opendevice-manager|.*-robot)$' |
Zack Williams | 07949bb | 2018-07-20 07:29:15 -0700 | [diff] [blame] | 100 | |
Zack Williams | ab85b98 | 2020-01-08 11:49:37 -0700 | [diff] [blame] | 101 | # List of all repos that contribute to the CORD guide |
| 102 | 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)$' |
| 103 | |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 104 | # PyPI related publishing variables |
| 105 | # |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 106 | # Pipe-separated list of directories relative to $WORKSPACE containing |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 107 | # python modules to publish to PyPI. Default is current directory which is |
| 108 | # correct for simple modules |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 109 | pypi-module-dirs: '.' |
| 110 | |
| 111 | # Which PyPI index to use. Corresponds to values in ~/.pypirc |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 112 | # 'pypi' and 'testpypi' are current options. Default to testpypi, override |
| 113 | # in the job once testing is completed |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 114 | pypi-index: 'testpypi' |
| 115 | |
Zack Williams | 96fecf0 | 2019-03-27 13:52:01 -0700 | [diff] [blame] | 116 | # Commands to run within the root of the checked out repo before running |
| 117 | # the `python setup.py sdist` to generate the distribution. |
| 118 | # Primarily used for autogenerating code before publishing a repo |
| 119 | pypi-prep-commands: '' |
| 120 | |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 121 | # Name of the Docker repository (usually on DockerHub) that is the |
| 122 | # destination for images to be pushed to after building. |
| 123 | # Default is invalid - must be specified on every job. |
| 124 | docker-repo: 'default-and-invalid' |
| 125 | |
Zack Williams | 38126df | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 126 | # URL of the Docker registry (server running a docker registry) that is the |
| 127 | # destination for images to be pushed to after building. If set, must |
| 128 | # include trailing slash as a separator before the repo name. |
| 129 | # Default is blank, which maps to DockerHub. |
| 130 | docker-registry: '' |
| 131 | |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 132 | # for matching files with file-include-regexp |
| 133 | all-files-regexp: '.*' |
Zack Williams | 698e5d1 | 2018-12-18 16:52:39 -0700 | [diff] [blame] | 134 | |
| 135 | # regex to allow docs-only patchsets w/version bumps to skip code-level |
| 136 | # tests. Have to also ignore the commit message on negative match, |
| 137 | # per: https://issues.jenkins-ci.org/browse/JENKINS-19891 |
| 138 | code-files-regexp: '^(?!docs|VERSION|\/COMMIT_MSG).*$' |
Kailash | 672d2c7 | 2019-02-14 09:31:24 -0800 | [diff] [blame] | 139 | api-test-files-regexp: '^(?!docs|VERSION|\/COMMIT_MSG|Jenkinsfile-*).*$' |
Zack Williams | 698e5d1 | 2018-12-18 16:52:39 -0700 | [diff] [blame] | 140 | |
Kailash | a10e39f | 2019-03-15 10:14:14 -0700 | [diff] [blame] | 141 | # siab helm-charts |
Andy Bavier | 86737b5 | 2019-04-19 16:48:36 -0700 | [diff] [blame] | 142 | 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 Williams | 0cb7846 | 2019-04-09 18:13:28 -0700 | [diff] [blame] | 143 | |
| 144 | # Optionally allow JUnit results to be empty when test framework is set up, |
Zack Williams | 3715d58 | 2020-02-24 10:40:27 -0700 | [diff] [blame] | 145 | # but no tests exist. Default behavior is to fail when test results are |
| 146 | # empty. Also will not vote if no test output exists - good for repos where |
| 147 | # tests or test output generation may not yet exist. |
Zack Williams | 0cb7846 | 2019-04-09 18:13:28 -0700 | [diff] [blame] | 148 | junit-allow-empty-results: false |
Zack Williams | cee76d2 | 2019-04-29 13:08:20 -0700 | [diff] [blame] | 149 | |
Zack Williams | 3715d58 | 2020-02-24 10:40:27 -0700 | [diff] [blame] | 150 | # Allow xunit to not vote if no test files exist. Default is true because |
| 151 | # jUnit is the more commonly supported output format. |
| 152 | xunit-skip-if-no-test-files: true |
| 153 | |
Zack Williams | cee76d2 | 2019-04-29 13:08:20 -0700 | [diff] [blame] | 154 | # Unit test targets |
| 155 | # List of targets to run when testing a patchset, run with make or similar |
| 156 | # defaults to just 'test', multiple targets should be space separated |
| 157 | unit-test-targets: 'test' |
| 158 | |
| 159 | # whether to "keep going" on multiple tests if one fails |
| 160 | # maps to the `-k` option passed to make in make-unit.yaml |
| 161 | unit-test-keep-going: false |
| 162 | |
| 163 | # golang specific variables |
| 164 | # dest-gopath handles checking out patchsets and putting them into a GOPATH |
| 165 | # This portion of the path should be included: `$GOPATH/src/<dest-gopath>/<project>" |
| 166 | # If blank, golang related variables won't be set |
| 167 | dest-gopath: '' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 168 | |
| 169 | # github organization |
Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 170 | # Specifies the github organization to operate on. Default is blank which |
| 171 | # may either be invalid, or specify that gerrit should be used instead. |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 172 | # Currently used with: github-release |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 173 | github-organization: '' |
| 174 | |
Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 175 | # release targets |
| 176 | # List of targets run when creating a software release, run with make or |
| 177 | # similar. Default is "release", multiple targets may be space separated |
| 178 | # (when using make). |
| 179 | release-targets: 'release' |
| 180 | |
| 181 | # artifact glob |
| 182 | # Shell glob expression used to select which files are included as binaries |
| 183 | # in a release. |
| 184 | # Currently used with: github-release |
| 185 | artifact-glob: '' |
| 186 | |
Zack Williams | 234dc92 | 2019-08-30 17:03:57 -0700 | [diff] [blame] | 187 | # JDK distribution to use |
| 188 | # Give the version of the JDK to use when building |
| 189 | # Parameter is used with `update-java-alternatives --set <jdk-distribution>` |
| 190 | jdk-distribution: 'java-11-amazon-corretto' |
hwchiu | f4a77ce | 2019-09-06 17:15:21 -0700 | [diff] [blame] | 191 | |
| 192 | # skip directories |
| 193 | # Used to skip directories in supported tests |
| 194 | skip-dirs: '' |
Matteo Scandolo | 3aba73a | 2019-09-27 09:03:38 -0700 | [diff] [blame] | 195 | |
| 196 | # maintainers |
| 197 | # Used to notify users in supported tests |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 198 | maintainers: '' |
pierventre | f48ebc1 | 2020-07-17 16:01:32 +0200 | [diff] [blame] | 199 | |
| 200 | # karaf-home |
| 201 | # Use to grab the logs or onos-diagnostics |
Andrea Campanella | 188e50d | 2022-01-14 11:30:05 +0100 | [diff] [blame] | 202 | karaf-home: 'apache-karaf-4.2.14' |
Hung-Wei Chiu | bfa8fe3 | 2021-04-27 10:59:40 -0700 | [diff] [blame] | 203 | |
| 204 | # maven version |
| 205 | # Have to setup JAVA_HOME correctly if we upgrade to mvn36 |
| 206 | maven-version: mvn33 |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 207 | |
| 208 | # [EOF] |