b4e0cf149a635ab5be9f4f06abee6f88aff788bb
[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     stream:
48       - master:
49           branch: master
50       - f-release:
51           branch: f-release
52       - g-release:
53           branch: g-release
54
55 - project:
56     <<: *orufhrecovery_common
57     name: nonrtric-rapp-orufhrecovery-consumer
58     project-name: "{name}"
59     # image name
60     docker-name: "o-ran-sc/nonrtric-rapp-orufhrecovery-consumer"
61     # get tag from YAML
62     container-tag-method: yaml-file
63     # use host network to clone from our gerrit
64     docker-build-args: "--network=host"
65     # Directory with Dockerfile
66     docker-root: "goversion"
67     # Directory where go test should be run
68     go-root: "goversion"
69     # Limit build trigger to appropriate files
70     gerrit_trigger_file_paths:
71       - compare-type: REG_EXP
72         pattern: "goversion/.*"
73     build-node: ubuntu1804-docker-4c-4g
74     # Includes verify and merge jobs
75     jobs:
76       - "{project-name}-gerrit-docker-jobs"
77       - gerrit-go-verify
78     stream:
79       - master:
80           branch: master
81       - f-release:
82           branch: f-release
83       - g-release:
84           branch: g-release
85
86 - project:
87     <<: *orufhrecovery_common
88     name: nonrtric-rapp-orufhrecovery-consumer-sonar
89     project-name: "nonrtric-rapp-orufhrecovery-consumer"
90     # prescan script requires ubuntu
91     # golang is only on docker-enabled nodes
92     build-node: ubuntu1804-docker-4c-4g
93     sonar-prescan-script: !include-raw-escape:
94       - prescan-oruclosedloopconsumer-ubuntu.sh
95     sonar-project-file: ""
96     java-version: openjdk11
97     # use sonarcloud values from defaults.yaml
98     sonar-properties: |
99       # Required metadata
100       sonar.login={sonarcloud_api_token}
101       sonar.projectKey=nonrtric-rapp-orufhrecovery-consumer
102       sonar.organization={sonarcloud_project_organization}
103       # Encoding
104       sonar.build.sourceEncoding=UTF-8
105       # Language
106       sonar.language=go
107       # Source
108       sonar.sources=.
109       # Unit tests
110       sonar.go.coverage.reportPaths=goversion/coverage.txt
111       # Inclusions
112       sonar.inclusions=goversion/internal/**/**.go,goversion/**.go
113       # Exclusions
114       sonar.exclusions=goversion/mocks/**.go,goversion/internal/**/**_test.go,goversion/**_test.go,goversion/simulator/**.go
115     jobs:
116       - gerrit-sonar-prescan-script