73bb21366da8f5968bc008c13cce3421857cbeec
[ci-management.git] / jjb / ric-plt-sdlpy / ric-plt-sdlpy.yaml
1 ---
2 - project:
3     name: ric-plt-sdlpy-project-view
4     project-name: ric-plt-sdlpy
5     views:
6       - project-view
7
8 - sdlpy_common: &sdlpy_common
9     name: sdlpy-common
10     # git repo
11     project: ric-plt/sdlpy
12     # jenkins job name prefix
13     project-name: ric-plt-sdlpy
14     # maven settings file has credentials
15     mvn-settings: ric-plt-sdlpy-settings
16     # release job requires centos
17     build-node: centos7-builder-1c-1g
18
19 # committer management
20 - project:
21     name: ric-plt-sdlpy-info
22     <<: *sdlpy_common
23     jobs:
24       - gerrit-info-yaml-verify
25
26 # verify distribution and publish to test.pypi.org
27 - project:
28     name: ric-plt-sdlpy-pypi
29     <<: *sdlpy_common
30     gerrit_trigger_file_paths:
31       - compare-type: REG_EXP
32         pattern: 'ricsdl-package/.*'
33     tox-dir: ricsdl-package
34     jobs:
35       - '{project-name}-gerrit-pypi-jobs'
36     stream:
37       - master:
38           branch: master
39
40 # promote distribution from test.pypi.org to pypi.org
41 - project:
42     name: ric-plt-sdlpy-release
43     <<: *sdlpy_common
44     jobs:
45       - '{project-name}-gerrit-pypi-release-jobs'
46
47 # analyze unit test coverage
48 - project:
49     name: ric-plt-sdlpy-sonar
50     <<: *sdlpy_common
51     branch: master
52     sonarcloud: true
53     sonarcloud-api-token: '{sonarcloud_api_token}'
54     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
55     sonarcloud-project-organization: '{sonarcloud_project_organization}'
56     tox-dir: ricsdl-package
57     mvn-params: -f ricsdl-package
58     jobs:
59       - gerrit-tox-sonar