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