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 | |
| 7 | # lftools |
| 8 | lftools-version: <1.0.0 |
| 9 | |
Zack Williams | 8e69efd | 2018-06-13 15:05:18 -0700 | [diff] [blame] | 10 | # name of the SSH key to use in most cases |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 11 | jenkins-ssh-credential: 'cord-jenkins-ssh' |
Zack Williams | 8e69efd | 2018-06-13 15:05:18 -0700 | [diff] [blame] | 12 | gerrit-ssh-credential: 'gerrit-jenkins-user' |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 13 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 14 | # by default, don't depend on other jobs |
| 15 | dependency-jobs: '' |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 16 | |
Zack Williams | 15a31c8 | 2018-08-29 15:10:03 -0700 | [diff] [blame] | 17 | # SCM checkout locations within Jenkins Workspace |
| 18 | destination-dir: '' |
| 19 | basedir: '' |
| 20 | |
Zack Williams | cee76d2 | 2019-04-29 13:08:20 -0700 | [diff] [blame] | 21 | # used to rename jobs if required |
Zack Williams | 9d68aa3 | 2018-07-12 11:50:37 -0700 | [diff] [blame] | 22 | name-extension: '' |
| 23 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 24 | # How long to keep builds and artifacts |
| 25 | build-days-to-keep: 60 |
| 26 | artifact-num-to-keep: 30 |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame] | 27 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 28 | # list of artifacts to archive |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 29 | archive-artifacts: '' |
| 30 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 31 | # build timeout (minutes) |
| 32 | build-timeout: 10 |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 33 | |
Zack Williams | 641d149 | 2018-08-17 13:31:53 -0700 | [diff] [blame] | 34 | # timed trigger defaults, crontab syntax |
| 35 | # H = random value hashed by name of job |
| 36 | every-hour: "H * * * *" |
| 37 | every-four-hours: "H */4 * * *" |
| 38 | every-six-hours: "H */6 * * *" |
| 39 | every-eight-hours: "H */8 * * *" |
| 40 | twice-a-day: "H */12 * * *" |
| 41 | once-a-day: "H 0 * * *" |
| 42 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 43 | # The most frequently used type of build node |
| 44 | # see other build node types under "Cloud > Amazon EC2" at |
Zack Williams | f4c9c40 | 2018-06-27 14:58:43 -0700 | [diff] [blame] | 45 | # https://jenkins.opencord.org/configure |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 46 | build-node: ubuntu16.04-basebuild-1c-1g |
Linux Foundation Administrators | 14b8edb | 2018-01-25 13:00:42 -0800 | [diff] [blame] | 47 | |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 48 | # CORD Gerrit server definition, set in configuration |
| 49 | gerrit-server-name: 'CORD Gerrit' |
| 50 | |
| 51 | # URL for Gerrit server, for use with `repo` |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 52 | gerrit-server-url: 'https://gerrit.opencord.org' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 53 | |
| 54 | # name of the manifest git repos used with the `repo` cli tool |
| 55 | cord-repo-manifest: manifest.git |
| 56 | cordqa-manifest-repo: qa-manifest.git |
Kailash | aad7101 | 2019-08-27 10:36:53 -0700 | [diff] [blame] | 57 | go-manifest-repo: go-manifest.git |
| 58 | voltha-test-manifest-repo: voltha-test-manifest.git |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 59 | |
Zack Williams | 5e09c95 | 2018-06-12 10:19:48 -0700 | [diff] [blame] | 60 | # default email address to send job failure messages |
| 61 | failure-email-address: 'cord-dev@opencord.org' |
| 62 | |
Luca Prete | ae7fc49 | 2018-12-13 16:00:37 -0800 | [diff] [blame] | 63 | # Projects containing helm-charts |
Zack Williams | e7e5db5 | 2019-07-23 18:14:55 -0700 | [diff] [blame] | 64 | helm-charts-projects-regexp: '^(.*helm-charts|cord-platform|seba)$' |
Luca Prete | ae7fc49 | 2018-12-13 16:00:37 -0800 | [diff] [blame] | 65 | |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 66 | # regexp for gerrit triggers |
| 67 | # list of supported branches, for branch-regexp |
Kailash | 40e1d0f | 2019-03-01 13:26:49 -0800 | [diff] [blame] | 68 | all-branches-regexp: '.*' |
Zack Williams | 48dd14a | 2019-07-12 14:40:53 -0700 | [diff] [blame] | 69 | supported-branches-regexp: '^(master|cord-7.0|cord-6.1|seba-1.0)$' |
Kailash Khalasi | ca59055 | 2018-05-24 15:09:42 -0700 | [diff] [blame] | 70 | legacy-branches-regexp: '^(cord-5.0|cord-4.1|cord-4.0)$' |
Zack Williams | 48dd14a | 2019-07-12 14:40:53 -0700 | [diff] [blame] | 71 | modern-branches-regexp: '^(master|cord-7.0|cord-6.1|cord-6.0|seba-1.0)$' |
| 72 | platform-branches-regexp: '^(master|cord-7.0|cord-6.1)$' |
| 73 | seba-branches-regexp: '^(master|cord-7.0|seba-1.0)$' |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame] | 74 | |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 75 | # matchs all project repos |
| 76 | all-projects-regexp: '.*' |
| 77 | |
Zack Williams | 5fee002 | 2018-06-11 14:42:54 -0700 | [diff] [blame] | 78 | # for matching repos that build docker images with imagebuilder |
Zack Williams | 599f6b7 | 2019-04-16 17:05:34 -0700 | [diff] [blame] | 79 | # As of 2019-04-16 most of the services actively being developed use the |
| 80 | # make-based image generation process managed by the `docker-publish` job |
| 81 | 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 Williams | 5fee002 | 2018-06-11 14:42:54 -0700 | [diff] [blame] | 82 | |
Zack Williams | 6650000 | 2018-09-06 15:29:05 -0700 | [diff] [blame] | 83 | # strictness of version checks |
| 84 | semver-strict: 0 |
| 85 | |
Zack Williams | 07949bb | 2018-07-20 07:29:15 -0700 | [diff] [blame] | 86 | # matching repos that should be version tagged by the version-tag job |
| 87 | # (basically the same as imagebuilder projects + helm charts + tools |
Zack Williams | 9f63ff2 | 2019-08-30 08:33:34 -0700 | [diff] [blame] | 88 | version-tag-projects-regexp: '^(xos.*|.*helm-charts|automation-tools|cord-tester|chameleon|rcord|mcord|ecord|acordion|addressmanager|epc-service|exampleservice|fabric|fabric-crossconnect|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|att-workflow-driver|tt-workflow-driver|ves-agent|voltha-bbsim|openolt|sadis-server|kafka-topic-exporter|pyvoltha|voltha-adtran-adapter|voltha-openolt-adapter|voltha-openonu-adapter|plyxproto|voltha-protos|alpine-grpc-base|cordctl|voltha-go|voltha-onos|device-management|cord-workflow.*|voltha-system-tests|openairinterface|omec-.*|bbsim|omci-sim)$' |
Zack Williams | 07949bb | 2018-07-20 07:29:15 -0700 | [diff] [blame] | 89 | |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 90 | # PyPI related publishing variables |
| 91 | # |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 92 | # Pipe-separated list of directories relative to $WORKSPACE containing |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 93 | # python modules to publish to PyPI. Default is current directory which is |
| 94 | # correct for simple modules |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 95 | pypi-module-dirs: '.' |
| 96 | |
| 97 | # Which PyPI index to use. Corresponds to values in ~/.pypirc |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 98 | # 'pypi' and 'testpypi' are current options. Default to testpypi, override |
| 99 | # in the job once testing is completed |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 100 | pypi-index: 'testpypi' |
| 101 | |
Zack Williams | 96fecf0 | 2019-03-27 13:52:01 -0700 | [diff] [blame] | 102 | # Commands to run within the root of the checked out repo before running |
| 103 | # the `python setup.py sdist` to generate the distribution. |
| 104 | # Primarily used for autogenerating code before publishing a repo |
| 105 | pypi-prep-commands: '' |
| 106 | |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 107 | # Name of the Docker repository (usually on DockerHub) that is the |
| 108 | # destination for images to be pushed to after building. |
| 109 | # Default is invalid - must be specified on every job. |
| 110 | docker-repo: 'default-and-invalid' |
| 111 | |
Zack Williams | 38126df | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 112 | # URL of the Docker registry (server running a docker registry) that is the |
| 113 | # destination for images to be pushed to after building. If set, must |
| 114 | # include trailing slash as a separator before the repo name. |
| 115 | # Default is blank, which maps to DockerHub. |
| 116 | docker-registry: '' |
| 117 | |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 118 | # for matching files with file-include-regexp |
| 119 | all-files-regexp: '.*' |
Kailash Khalasi | ca59055 | 2018-05-24 15:09:42 -0700 | [diff] [blame] | 120 | doc-files-regexp: '^docs/.*' |
Zack Williams | 698e5d1 | 2018-12-18 16:52:39 -0700 | [diff] [blame] | 121 | |
| 122 | # regex to allow docs-only patchsets w/version bumps to skip code-level |
| 123 | # tests. Have to also ignore the commit message on negative match, |
| 124 | # per: https://issues.jenkins-ci.org/browse/JENKINS-19891 |
| 125 | code-files-regexp: '^(?!docs|VERSION|\/COMMIT_MSG).*$' |
Kailash | 672d2c7 | 2019-02-14 09:31:24 -0800 | [diff] [blame] | 126 | api-test-files-regexp: '^(?!docs|VERSION|\/COMMIT_MSG|Jenkinsfile-*).*$' |
Zack Williams | 698e5d1 | 2018-12-18 16:52:39 -0700 | [diff] [blame] | 127 | |
Kailash | 672d2c7 | 2019-02-14 09:31:24 -0800 | [diff] [blame] | 128 | # Jenkins SSH host doc publisher |
Kailash Khalasi | ca59055 | 2018-05-24 15:09:42 -0700 | [diff] [blame] | 129 | docs-ssh-host: 'guide.opencord.org' |
Zack Williams | 642e5f7 | 2018-06-05 13:24:13 -0700 | [diff] [blame] | 130 | docs-ssh-host-key: 'guide.opencord.org,52.9.82.207 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFHwOY3/8GucdKzBngH/FC08nHac/RJ/OheZp2+5EpOPXZG9zQW2YUbXH5A9pO76lI5CG3z3+huG62xEGo99UQU=' |
| 131 | |
Zack Williams | efc1cb9 | 2018-07-17 14:11:08 -0700 | [diff] [blame] | 132 | # For running Sonarqube configuration - see sonar.yaml for more info |
| 133 | sonar-prep-commands: '' |
| 134 | sonar-java-binaries: '' |
| 135 | |
Kailash | a10e39f | 2019-03-15 10:14:14 -0700 | [diff] [blame] | 136 | # siab helm-charts |
Andy Bavier | 86737b5 | 2019-04-19 16:48:36 -0700 | [diff] [blame] | 137 | 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] | 138 | |
| 139 | # Optionally allow JUnit results to be empty when test framework is set up, |
| 140 | # but no tests exist. Default behavior is to fail when test results are empty. |
| 141 | junit-allow-empty-results: false |
Zack Williams | cee76d2 | 2019-04-29 13:08:20 -0700 | [diff] [blame] | 142 | |
| 143 | # Unit test targets |
| 144 | # List of targets to run when testing a patchset, run with make or similar |
| 145 | # defaults to just 'test', multiple targets should be space separated |
| 146 | unit-test-targets: 'test' |
| 147 | |
| 148 | # whether to "keep going" on multiple tests if one fails |
| 149 | # maps to the `-k` option passed to make in make-unit.yaml |
| 150 | unit-test-keep-going: false |
| 151 | |
| 152 | # golang specific variables |
| 153 | # dest-gopath handles checking out patchsets and putting them into a GOPATH |
| 154 | # This portion of the path should be included: `$GOPATH/src/<dest-gopath>/<project>" |
| 155 | # If blank, golang related variables won't be set |
| 156 | dest-gopath: '' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 157 | |
| 158 | # github organization |
Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 159 | # Specifies the github organization to operate on. Default is blank which |
| 160 | # may either be invalid, or specify that gerrit should be used instead. |
| 161 | # Currently used with: synopsys detect, github-release |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 162 | github-organization: '' |
| 163 | |
Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 164 | # release targets |
| 165 | # List of targets run when creating a software release, run with make or |
| 166 | # similar. Default is "release", multiple targets may be space separated |
| 167 | # (when using make). |
| 168 | release-targets: 'release' |
| 169 | |
| 170 | # artifact glob |
| 171 | # Shell glob expression used to select which files are included as binaries |
| 172 | # in a release. |
| 173 | # Currently used with: github-release |
| 174 | artifact-glob: '' |
| 175 | |