Merge "Add base CI job description for e2ap library"
[ci-management.git] / jjb / oam / oam.yaml
1 ---
2 - project:
3     name: oam-project-view
4     project-name: oam
5     views:
6       - project-view
7
8 - project:
9     name: oam-info
10     project: oam
11     project-name: oam
12     build-node: centos7-builder-1c-1g
13     jobs:
14       - gerrit-info-yaml-verify
15
16 # common for all mvn jobs
17 - oam_common: &oam_common
18     name: oam-common
19     project: oam
20     project-name: oam
21     mvn-settings: oam-settings
22     java-version: openjdk8
23     maven-version: mvn35
24
25 # promote artifacts and images to release registries
26 - project:
27     <<: *oam_common
28     name: oam-release
29     build-node: centos7-docker-2c-8g
30     jobs:
31       - '{project-name}-gerrit-release-jobs'
32
33 # oam:features
34 # commmon for feature artifacts for nonrtric-o1-controller
35 - oam_features_common: &oam_features_common
36     name: oam-features-common
37     project-name: oam-features
38     mvn-opts: '-Xmx3072m -XX:MaxPermSize=1024m'
39     mvn-params: '-f features'
40     gerrit_trigger_file_paths:
41       - compare-type: REG_EXP
42         pattern: 'features/.*'
43
44 # build feature artifacts for nonrtric-o1-controller
45 - project:
46     <<: *oam_common
47     <<: *oam_features_common
48     name: oam-features
49     build-node: ubuntu1804-builder-4c-4g
50     jobs:
51       - gerrit-maven-verify
52       - gerrit-maven-merge
53       - gerrit-maven-stage
54       - gerrit-maven-clm
55     stream:
56       - 'master':
57           branch: 'master'
58
59 # report test coverage periodically for feature artifacs
60 - project:
61     <<: *oam_common
62     <<: *oam_features_common
63     name: oam-features-sonar
64     sonarcloud: true
65     sonarcloud-api-token: '{sonarcloud_api_token}'
66     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
67     sonarcloud-project-organization: '{sonarcloud_project_organization}'
68     build-node: ubuntu1804-builder-4c-4g
69     jobs:
70       - gerrit-maven-sonar
71
72 # oam:parent
73 # common for feature parents for nonrtric-o1-controller feature artifacts
74 - oam_parent_common: &oam_parent_common
75     name: oam-parent-common
76     project-name: oam-parent
77     mvn-opts: '-Xmx3072m -XX:MaxPermSize=1024m'
78     mvn-params: '-f parent'
79     gerrit_trigger_file_paths:
80       - compare-type: REG_EXP
81         pattern: 'parent/.*'
82
83 # building feature parents for nonrtric-o1-controller feature artifacts
84 - project:
85     <<: *oam_common
86     <<: *oam_parent_common
87     name: oam-parents
88     build-node: ubuntu1804-builder-4c-4g
89     jobs:
90       - gerrit-maven-verify
91       - gerrit-maven-merge
92       - gerrit-maven-stage
93       - gerrit-maven-clm
94     stream:
95       - 'master':
96           branch: 'master'
97
98 #  report test coverage periodically
99 - project:
100     <<: *oam_common
101     <<: *oam_parent_common
102     name: oam-parent-sonar
103     sonarcloud: true
104     sonarcloud-api-token: '{sonarcloud_api_token}'
105     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
106     sonarcloud-project-organization: '{sonarcloud_project_organization}'
107     build-node: ubuntu1804-builder-4c-4g
108     jobs:
109       - gerrit-maven-sonar
110
111 # oam:distribution
112 # common for oam-distribution docker projects
113 - oam_distribution_common: &oam_distribution_common
114     name: oam-distribution-common
115     project-name: oam-distribution
116     mvn-opts: '-Xmx3072m -XX:MaxPermSize=1024m'
117     mvn-params: '-f distribution -Dbuild.number=${{BUILD_NUMBER}}'
118     gerrit_trigger_file_paths:
119       - compare-type: REG_EXP
120         pattern: 'distribution/.*'
121
122 # build docker images for nonrtric-o1-controller
123 - project:
124     <<: *oam_common
125     <<: *oam_distribution_common
126     name: oam-distribution
127     jobs:
128       - gerrit-maven-docker-verify
129       - gerrit-maven-docker-merge
130       - gerrit-maven-docker-stage
131     stream:
132       - master:
133           branch: 'master'