Merge "Chore: Automation adds ric-app-kpimon-go.yaml"
[ci-management.git] / jjb / nonrtric-rapp-orufhrecovery / nonrtric-rapp-orufhrecovery.yaml
1 ---
2 - project:
3     name: nonrtric-rapp-orufhrecovery-project-view
4     project-name: nonrtric-rapp-orufhrecovery
5     views:
6       - project-view
7
8 - project: &orufhrecovery_common
9     name: nonrtric-rapp-orufhrecovery-info
10     project: nonrtric/rapp/orufhrecovery
11     project-name: nonrtric-rapp-orufhrecovery
12     # maven settings file has docker credentials
13     mvn-settings: nonrtric-rapp-orufhrecovery-settings
14     build-node: centos7-builder-1c-1g
15     jobs:
16       - gerrit-info-yaml-verify
17
18 - project:
19     <<: *orufhrecovery_common
20     name: nonrtric-rapp-orufhrecovery-release
21     # maven release requires sigul which requires centos
22     # container release requires docker
23     build-node: centos7-docker-2c-8g
24     jobs:
25       - '{project-name}-gerrit-release-jobs'
26
27 - project:
28     <<: *orufhrecovery_common
29     name: nonrtric-rapp-orufhrecovery
30     project-name: '{name}'
31     # image name
32     docker-name: 'o-ran-sc/nonrtric-rapp-orufhrecovery'
33     # get tag from YAML
34     container-tag-method: yaml-file
35     # use host network to clone from our gerrit
36     docker-build-args: '--network=host'
37     # Directory with Dockerfile
38     docker-root: 'scriptversion/app'
39     # Limit build trigger to appropriate files
40     gerrit_trigger_file_paths:
41       - compare-type: REG_EXP
42         pattern: 'scriptversion/app/.*'
43     build-node: ubuntu1804-docker-4c-4g
44     # Includes verify and merge jobs
45     jobs:
46       - "{project-name}-gerrit-docker-jobs"
47       - gerrit-maven-docker-stage
48     stream:
49       - master:
50           branch: master
51       - f-release:
52           branch: f-release
53
54 - project:
55     <<: *orufhrecovery_common
56     name: nonrtric-rapp-orufhrecovery-consumer
57     project-name: '{name}'
58     # image name
59     docker-name: 'o-ran-sc/nonrtric-rapp-orufhrecovery-consumer'
60     # get tag from YAML
61     container-tag-method: yaml-file
62     # use host network to clone from our gerrit
63     docker-build-args: '--network=host'
64     # Directory with Dockerfile
65     docker-root: 'goversion'
66     # Directory where go test should be run
67     go-root: 'goversion'
68     # Limit build trigger to appropriate files
69     gerrit_trigger_file_paths:
70       - compare-type: REG_EXP
71         pattern: 'goversion/.*'
72     build-node: ubuntu1804-docker-4c-4g
73     # Includes verify and merge jobs
74     jobs:
75       - "{project-name}-gerrit-docker-jobs"
76       - gerrit-go-verify
77       - gerrit-maven-docker-stage
78     stream:
79       - master:
80           branch: master
81       - f-release:
82           branch: f-release
83
84 - project:
85     <<: *orufhrecovery_common
86     name: nonrtric-rapp-orufhrecovery-consumer-sonar
87     project-name: '{name}'
88     # prescan script requires ubuntu
89     # golang is only on docker-enabled nodes
90     build-node: ubuntu1804-docker-4c-4g
91     sonar-prescan-script: !include-raw-escape: prescan-oruclosedloopconsumer-ubuntu.sh
92     sonar-project-file: ""
93     java-version: openjdk11
94     # use sonarcloud values from defaults.yaml
95     sonar-properties: |
96         # Required metadata
97         sonar.login={sonarcloud_api_token}
98         sonar.projectKey={sonarcloud_project_organization}_nonrtric-rapp-orufhrecovery-consumer
99         sonar.organization={sonarcloud_project_organization}
100         # Encoding
101         sonar.build.sourceEncoding=UTF-8
102         # Language
103         sonar.language=go
104         # Source
105         sonar.sources=.
106         # Unit tests
107         sonar.go.coverage.reportPaths=goversion/coverage.txt
108         # Inclusions
109         sonar.inclusions=goversion/internal/**/**.go,goversion/**.go
110         # Exclusions
111         sonar.exclusions=goversion/mocks/**.go,goversion/internal/**/**_test.go,goversion/**_test.go,goversion/simulator/**.go
112     jobs:
113       - gerrit-sonar-prescan-script