Change Sonar nonrtric-plt-sme to prescan script
[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
31 - project:
32     <<: *nonrtric_plt_sme_common
33     name: nonrtric-plt-sme-capifcore
34     project-name: '{name}'
35     # image name
36     docker-name: 'o-ran-sc/nonrtric-plt-capifcore'
37     # get tag from YAML
38     container-tag-method: yaml-file
39     # use host network to clone from our gerrit
40     docker-build-args: '--network=host'
41     # Directory with Dockerfile
42     docker-root: 'capifcore'
43     # Limit build trigger to appropriate files
44     gerrit_trigger_file_paths:
45       - compare-type: REG_EXP
46         pattern: 'capifcore/.*'
47     # Directory where go test should be run
48     go-root: 'capifcore'
49     build-node: ubuntu1804-docker-4c-4g
50     # Includes verify and merge jobs
51     jobs:
52       - "{project-name}-gerrit-docker-jobs"
53       - gerrit-go-verify
54     stream:
55       - master:
56           branch: master
57
58 - project:
59     <<: *nonrtric_plt_sme_common
60     name: nonrtric-plt-sme-capifcore-sonar
61     # prescan script requires ubuntu
62     # golang is only on docker-enabled nodes
63     build-node: ubuntu1804-docker-4c-4g
64     gerrit_trigger_file_paths:
65       - compare-type: REG_EXP
66         pattern: 'capifcore/.*'
67     sonar-prescan-script: !include-raw-escape: prescan-capifcore-ubuntu.sh
68     sonar-project-file: ""
69     java-version: openjdk11
70     # use sonarcloud values from defaults.yaml
71     sonar-properties: !include-raw: sonar-project.properties
72     jobs:
73       - gerrit-sonar-prescan-script