Use gerrit-cli-sonar for nonrtric-plt-sme
[ci-management.git] / jjb / nonrtric-plt-sme / nonrtric-plt-sme.yaml
1 ---
2 - project:
3     name: nonrtric-plt-sme-project-view
4     project-name: nonrtric-plt-sme
5     views:
6       - project-view
7
8 - project:
9     name: nonrtric-plt-sme-info
10     project: nonrtric/plt/sme
11     project-name: nonrtric-plt-sme
12     # maven settings file has docker credentials
13     build-node: centos7-builder-1c-1g
14     branch: master
15     jobs:
16       - gerrit-info-yaml-verify
17
18 - nonrtric_plt_sme_common: &nonrtric_plt_sme_common
19     # values apply to all projects here
20     name: nonrtric-plt-sme-common
21     # git repo
22     project: nonrtric/plt/sme
23     # jenkins job name prefix
24     project-name: nonrtric-plt-sme
25     # maven settings file has docker credentials
26     mvn-settings: nonrtric-plt-sme-settings
27     # defaults.yaml value is NOT used due to value set in lf-maven-jobs.yaml
28     java-version: openjdk11
29     mvn-version: mvn36
30     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
31     sonarcloud-project-name: '{project-name}'
32     sonarcloud-project-organization: '{sonarcloud_project_organization}'
33
34 - project:
35     <<: *nonrtric_plt_sme_common
36     name: nonrtric-plt-sme-capifcore
37     project-name: '{name}'
38     # image name
39     docker-name: 'o-ran-sc/nonrtric-plt-capifcore'
40     # get tag from YAML
41     container-tag-method: yaml-file
42     # use host network to clone from our gerrit
43     docker-build-args: '--network=host'
44     # Directory with Dockerfile
45     docker-root: 'capifcore'
46     # Limit build trigger to appropriate files
47     gerrit_trigger_file_paths:
48       - compare-type: REG_EXP
49         pattern: 'capifcore/.*'
50     # Directory where go test should be run
51     go-root: 'capifcore'
52     build-node: ubuntu1804-docker-4c-4g
53     # Includes verify and merge jobs
54     jobs:
55       - "{project-name}-gerrit-docker-jobs"
56       - gerrit-go-verify
57     stream:
58       - master:
59           branch: master
60
61 - project:
62     <<: *nonrtric_plt_sme_common
63     name: nonrtric-plt-sme-capifcore-sonar
64     gerrit_trigger_file_paths:
65       - compare-type: REG_EXP
66         pattern: 'capifcore/.*'
67     build-node: ubuntu1804-docker-4c-4g
68     sonarcloud: true
69     sonar-project-file: ""
70     jobs:
71       - gerrit-cli-sonar