2021-06-16 11:56:34 +00:00
|
|
|
# This file holds all gerrit lint verifications https://jenkins.osmocom.org/jenkins/view/Jenkins-Gerrit/.
|
2022-01-10 15:15:48 +00:00
|
|
|
# One can simply add a gerrit job by adding project's repository to repos list.
|
2021-06-16 11:56:34 +00:00
|
|
|
|
|
|
|
- project:
|
|
|
|
name: gerrit-lint
|
|
|
|
# following default values can be overridden by each repo
|
|
|
|
disabled: false
|
|
|
|
gerrit_url: 'ssh://jenkins@gerrit.osmocom.org:29418'
|
|
|
|
repos_url: '{gerrit_url}/{repos}'
|
|
|
|
gerrit_project: '{repos}'
|
|
|
|
|
|
|
|
# in alphabetical order
|
|
|
|
repos:
|
|
|
|
- asn1c
|
|
|
|
- cellmgr-ng
|
2022-02-11 14:41:45 +00:00
|
|
|
- docker-playground
|
2021-06-16 11:56:34 +00:00
|
|
|
- libasn1c
|
|
|
|
- libgtpnl
|
|
|
|
- libosmo-abis
|
2022-08-09 21:24:30 +00:00
|
|
|
- libosmo-gprs
|
2021-06-16 11:56:34 +00:00
|
|
|
- libosmo-netif
|
2022-06-17 14:33:10 +00:00
|
|
|
- libosmo-pfcp
|
2021-06-16 11:56:34 +00:00
|
|
|
- libosmo-sccp
|
|
|
|
- libosmocore
|
|
|
|
- libsmpp34
|
|
|
|
- libtelnet
|
|
|
|
- libusrp
|
|
|
|
- openbsc
|
|
|
|
- openggsn
|
|
|
|
- osmo-bsc
|
2022-01-31 13:05:34 +00:00
|
|
|
- osmo-bsc-nat
|
2021-06-16 11:56:34 +00:00
|
|
|
- osmo-bts
|
2021-10-21 09:37:01 +00:00
|
|
|
- osmo-hnodeb
|
2022-01-04 18:30:30 +00:00
|
|
|
- osmo-hnbgw
|
2021-12-28 14:47:56 +00:00
|
|
|
- osmo-upf
|
2022-09-08 13:47:12 +00:00
|
|
|
- osmo-ci
|
2021-06-16 11:56:34 +00:00
|
|
|
|
|
|
|
- osmo_dia2gsup:
|
|
|
|
repos_url: '{gerrit_url}/erlang/{repos}'
|
|
|
|
gerrit_project: 'erlang/{repos}'
|
|
|
|
|
|
|
|
- osmo-e1-hardware
|
|
|
|
- osmo-ggsn
|
|
|
|
- osmo-gsm-manuals
|
|
|
|
|
|
|
|
- osmo_gsup:
|
|
|
|
repos_url: '{gerrit_url}/erlang/{repos}'
|
|
|
|
gerrit_project: 'erlang/{repos}'
|
|
|
|
|
|
|
|
- osmo-hlr
|
|
|
|
- osmo-iuh
|
|
|
|
- osmo-mgw
|
|
|
|
- osmo-msc
|
|
|
|
- osmo-pcap
|
|
|
|
- osmo-pcu
|
|
|
|
|
|
|
|
- osmo-python-tests:
|
|
|
|
repos_url: '{gerrit_url}/python/{repos}'
|
|
|
|
gerrit_project: 'python/{repos}'
|
|
|
|
|
|
|
|
- osmo-sgsn
|
|
|
|
|
|
|
|
- osmo_ss7:
|
|
|
|
repos_url: '{gerrit_url}/erlang/{repos}'
|
|
|
|
gerrit_project: 'erlang/{repos}'
|
|
|
|
|
|
|
|
- osmo-sip-connector
|
|
|
|
- osmo-trx
|
|
|
|
- osmocom-bb
|
|
|
|
- osmo-tetra
|
|
|
|
- osmo-sysmon
|
|
|
|
- osmo-remsim
|
|
|
|
- simtrace2
|
|
|
|
- osmo-asf4-dfu
|
|
|
|
- osmo-ccid-firmware
|
2022-01-18 08:44:59 +00:00
|
|
|
- osmo-e1d
|
2021-06-16 11:56:34 +00:00
|
|
|
- osmo-cbc
|
2022-01-18 08:44:59 +00:00
|
|
|
- osmo-e1-recorder
|
2021-06-16 11:56:34 +00:00
|
|
|
- gapk
|
|
|
|
- osmo-uecups
|
|
|
|
- osmo-el2tpd
|
|
|
|
- osmo-smlc
|
|
|
|
- osmo-gbproxy
|
|
|
|
- pysim
|
|
|
|
|
|
|
|
- osmo-ttcn3-hacks:
|
|
|
|
repos_url: 'https://gerrit.osmocom.org/{repos}'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- 'gerrit-{repos}-lint'
|
|
|
|
|
|
|
|
- job-template:
|
|
|
|
name: 'gerrit-{repos}-lint'
|
|
|
|
project-type: freestyle
|
|
|
|
node: osmocom-gerrit-debian9
|
|
|
|
disabled: '{obj:disabled}'
|
|
|
|
retry-count: 3 # scm checkout
|
|
|
|
properties:
|
|
|
|
- build-discarder:
|
|
|
|
days-to-keep: 30
|
|
|
|
num-to-keep: 120
|
|
|
|
artifact-days-to-keep: -1
|
|
|
|
artifact-num-to-keep: -1
|
|
|
|
description: |
|
|
|
|
Run linting on patches submitted to gerrit for
|
|
|
|
<a href="https://gerrit.osmocom.org/#/q/status:open+project:{repos}">{repos}</a>
|
|
|
|
</br></br>
|
|
|
|
Related issue: <a href="https://osmocom.org/issues/5087">OS#5087</a>
|
|
|
|
|
2022-09-08 14:10:33 +00:00
|
|
|
parameters:
|
|
|
|
- string:
|
|
|
|
name: BRANCH_CI
|
|
|
|
description: |
|
|
|
|
osmo-ci.git branch
|
|
|
|
default: 'master'
|
|
|
|
|
2021-06-16 11:56:34 +00:00
|
|
|
scm:
|
|
|
|
- git:
|
2022-09-08 14:10:33 +00:00
|
|
|
basedir: 'code-from-gerrit'
|
2021-06-16 11:56:34 +00:00
|
|
|
url: '{obj:repos_url}'
|
|
|
|
credentials-id: d5eda5e9-b59d-44ba-88d2-43473cb6e42d
|
|
|
|
branches:
|
|
|
|
- $GERRIT_BRANCH
|
|
|
|
refspec: $GERRIT_REFSPEC
|
|
|
|
name:
|
|
|
|
choosing-strategy: gerrit
|
|
|
|
wipe-workspace: false
|
|
|
|
skip-tag: true
|
|
|
|
submodule:
|
|
|
|
recursive: false
|
2022-09-08 14:10:33 +00:00
|
|
|
- git:
|
|
|
|
basedir: 'osmo-ci'
|
|
|
|
url: '{gerrit_url}/osmo-ci'
|
|
|
|
credentials-id: d5eda5e9-b59d-44ba-88d2-43473cb6e42d
|
|
|
|
branches:
|
|
|
|
- '$BRANCH_CI'
|
|
|
|
wipe-workspace: true
|
2021-06-16 11:56:34 +00:00
|
|
|
|
|
|
|
triggers:
|
|
|
|
- gerrit:
|
|
|
|
trigger-on:
|
|
|
|
- patchset-created-event:
|
|
|
|
exclude-drafts: true
|
|
|
|
exclude-no-code-change: true
|
|
|
|
projects:
|
|
|
|
- project-compare-type: 'PLAIN'
|
|
|
|
project-pattern: '{obj:gerrit_project}'
|
|
|
|
branches:
|
|
|
|
- branch-compare-type: 'ANT'
|
|
|
|
branch-pattern: '**'
|
|
|
|
skip-vote:
|
|
|
|
successful: false
|
|
|
|
failed: false
|
|
|
|
unstable: false
|
|
|
|
notbuilt: false
|
|
|
|
silent: false
|
|
|
|
escape-quotes: false
|
|
|
|
no-name-and-email: false
|
|
|
|
trigger-for-unreviewed-patches: true
|
|
|
|
server-name: gerrit.osmocom.org
|
|
|
|
|
|
|
|
builders:
|
2022-09-08 14:10:33 +00:00
|
|
|
- shell: 'cd code-from-gerrit && ../osmo-ci/lint/lint_diff.sh HEAD~1'
|
2021-06-16 11:56:34 +00:00
|
|
|
|
2022-01-17 15:28:22 +00:00
|
|
|
wrappers:
|
|
|
|
- ansicolor:
|
|
|
|
colormap: xterm
|
2022-09-12 09:50:13 +00:00
|
|
|
- ssh-agent-credentials:
|
|
|
|
users:
|
|
|
|
- d5eda5e9-b59d-44ba-88d2-43473cb6e42d
|
2022-01-17 15:28:22 +00:00
|
|
|
|
2021-06-16 11:56:34 +00:00
|
|
|
# vim: expandtab tabstop=2 shiftwidth=2
|