Revert "Refactor!: Update JJB code to comply 5.x"
[ci-management.git] / jjb / aiml-fw-awmf-tm / aiml-fw-awmf-tm.yaml
1 ---
2 - project:
3     name: aiml-fw-awmf-tm-project-view
4     project-name: aiml-fw-awmf-tm
5     views:
6       - project-view
7
8 - project:
9     name: aiml-fw-awmf-tm-info
10     project: aiml-fw/awmf/tm
11     project-name: aiml-fw-awmf-tm
12     build-node: centos7-builder-1c-1g
13     branch: master
14     jobs:
15       - gerrit-info-yaml-verify
16
17 - aiml_tm_docker_common: &aiml_tm_docker_common
18     # values apply to all training manager projects
19     name: aiml-fw-awmf-tm-docker-common
20     # git repo
21     project: aiml-fw/awmf/tm
22     # jenkins job name prefix
23     project-name: aiml-fw-awmf-tm
24     # maven settings file has docker credentials
25     mvn-settings: aiml-fw-awmf-tm-settings
26
27 - project:
28     <<: *aiml_tm_docker_common
29     name: aiml-fw-awmf-tm-release
30     # maven release requires sigul which requires centos
31     # container release requires docker
32     build-node: centos7-docker-2c-8g
33     jobs:
34       - '{project-name}-gerrit-release-jobs'
35
36 - project:
37     <<: *aiml_tm_docker_common
38     name: aiml-fw-awmf-tm-docker
39     project-name: '{name}'
40     # image name
41     docker-name: 'o-ran-sc/{name}'
42     # Dockerfile is in a subdir
43     docker-root: '.'
44     # source of docker tag
45     # dockerfile is in subdir of docker root
46     docker-build-args: '--network=host'
47     container-tag-method: yaml-file
48     build-node: ubuntu1804-docker-4c-4g
49     jobs:
50       - "{project-name}-gerrit-docker-jobs"
51     stream:
52       - master:
53           branch: master
54 - project:
55     <<: *aiml_tm_docker_common
56     name: aiml-fw-awmf-tm-tox-verify
57     # the install script assumes an ubuntu image
58     build-node: ubuntu1804-builder-2c-2g
59     python-version: python3
60     # skip docs on verify
61     tox-envs: code
62     tox-dir: '.'
63     # do not trigger on changes in docs, releases
64     gerrit_trigger_file_paths:
65       - compare-type: REG_EXP
66         pattern: 'trainingmgr/.*'
67     stream:
68       # run verify on all branches
69       # the ANT pattern is **/{branch}, we are exploiting that.
70       - all:
71           branch: master
72     jobs:
73       - gerrit-tox-verify
74
75 - project:
76     <<: *aiml_tm_docker_common
77     name: aiml-fw-awmf-tm-sonarqube
78     python-version: python3
79     tox-dir: '.'
80     # the install script assumes an ubuntu image
81     build-node: ubuntu1804-builder-2c-2g
82     # do not trigger on changes in docs, releases
83     gerrit_trigger_file_paths:
84       - compare-type: REG_EXP
85         pattern: 'trainingmgr/.*'
86     sonar-project-file: ""
87     sonar-properties: |
88         sonar.login={sonarcloud_api_token}
89         sonar.projectKey={sonarcloud_project_organization}_{project-name}
90         sonar.projectName={project-name}
91         sonar.organization={sonarcloud_project_organization}
92         sonar.build.sourceEncoding=UTF-8
93         sonar.sources=trainingmgr
94         sonar.python.coverage.reportPaths=coverage.xml
95     jobs:
96       - gerrit-tox-sonarqube