NONRTRIC-946: Servicemanager - build capif as a library
[ci-management.git] / jjb / ric-plt-e2mgr / ric-plt-e2mgr.yaml
1 ---
2 - project:
3     name: ric-plt-e2mgr-project-view
4     project-name: ric-plt-e2mgr
5     views:
6       - project-view
7
8 - _e2mgr_docker_common:
9     &e2mgr_docker_common # values apply to all E2MGR docker projects
10     name: e2mgr-docker-common
11     # git repo
12     project: ric-plt/e2mgr
13     # jenkins job name prefix
14     project-name: ric-plt-e2mgr
15     # maven settings file has docker credentials
16     mvn-settings: ric-plt-e2mgr-settings
17
18 - project:
19     <<: *e2mgr_docker_common
20     name: ric-plt-e2mgr
21     # image name
22     docker-name: "o-ran-sc/{name}"
23     # Dockerfile is in a subdir
24     docker-root: E2Manager
25     # source of docker tag
26     container-tag-method: yaml-file
27     # use host network to clone from our gerrit
28     docker-build-args: "--network=host"
29     jobs:
30       - "{project-name}-gerrit-docker-jobs"
31     stream:
32       - master:
33           branch: master
34
35 - project:
36     <<: *e2mgr_docker_common
37     name: ric-plt-e2mgr-release
38     # maven release requires sigul which requires centos
39     # container release requires docker
40     build-node: centos7-docker-2c-8g
41     jobs:
42       - "{project-name}-gerrit-release-jobs"
43
44 - project:
45     name: ric-plt-e2mgr-sonar
46     project: ric-plt/e2mgr
47     project-name: ric-plt-e2mgr
48     # prescan script requires ubuntu
49     # golang is only on docker-enabled nodes
50     build-node: ubuntu1804-docker-4c-4g
51     java-version: openjdk11
52     sonar-prescan-script: !include-raw-escape: prescan-e2mgr-ubuntu.sh
53     sonar-project-file: ""
54     # use sonarcloud values from defaults.yaml
55     sonar-properties: |
56       # Required metadata
57       sonar.login={sonarcloud_api_token}
58       sonar.projectKey={sonarcloud_project_organization}_{project-name}
59       sonar.projectName={project-name}
60       sonar.organization={sonarcloud_project_organization}
61       # Encoding
62       sonar.build.sourceEncoding=UTF-8
63       # Language
64       sonar.language=go
65       # Source
66       sonar.sources=E2Manager
67       # Unit tests
68       sonar.go.coverage.reportPaths=E2Manager/coverage.txt
69       # Inclusions
70       sonar.inclusions=**/**.go
71       # Exclusions
72       sonar.exclusions=**/mocks/**.go,**/tests/**.go
73       # Test inclusions
74       sonar.test.inclusions=**/*_test.go
75     jobs:
76       - gerrit-sonar-prescan-script