Merge "Build and Post-Docker-Build Verify script for ICS sample producer and consumer"
[ci-management.git] / jjb / portal-ric-dashboard / portal-ric-dashboard.yaml
1 ---
2 - project:
3     name: portal-ric-dashboard-project-view
4     project-name: portal-ric-dashboard
5     views:
6       - project-view
7
8 - project:
9     name: portal-ric-dashboard-info
10     project: portal/ric-dashboard
11     project-name: portal-ric-dashboard
12     build-node: centos7-builder-1c-1g
13     jobs:
14       - gerrit-info-yaml-verify
15
16 - portal_ric_dashboard_common: &portal_ric_dashboard_common
17     # values apply to all projects here
18     name: portal-ric-dashboard-common
19     # git repo
20     project: portal/ric-dashboard
21     # jenkins job name prefix
22     project-name: portal-ric-dashboard
23     # maven settings file has docker credentials
24     mvn-settings: portal-ric-dashboard-settings
25     # defaults.yaml value is NOT used due to value set in lf-maven-jobs.yaml
26     java-version: openjdk11
27
28 # build docker images from code
29 - project:
30     <<: *portal_ric_dashboard_common
31     name: portal-ric-dashboard-project
32     mvn-params: -f dashboard -Dbuild.number=${{BUILD_NUMBER}}
33     gerrit_trigger_file_paths:
34       - compare-type: REG_EXP
35         pattern: 'dashboard/.*'
36     jobs:
37       - gerrit-maven-docker-verify
38       - gerrit-maven-docker-merge
39       - gerrit-maven-docker-stage:
40           # stage every Saturday, not daily
41           cron: 'H H * * 6'
42     stream:
43       - master:
44           branch: master
45
46 # analyze code periodically
47 - project:
48     <<: *portal_ric_dashboard_common
49     name: portal-ric-dashboard-clm
50     # template goal install builds docker image unnecessarily
51     mvn-params: -f dashboard -Ddocker.skip=true
52     nexus-iq-namespace: 'oran-'
53     jobs:
54       - gerrit-maven-clm
55
56 # report test coverage periodically
57 - project:
58     <<: *portal_ric_dashboard_common
59     name: portal-ric-dashboard-sonar
60     # template goal install builds docker image unnecessarily
61     mvn-params: -f dashboard -Ddocker.skip=true
62     sonarcloud: true
63     sonarcloud-api-token: '{sonarcloud_api_token}'
64     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
65     sonarcloud-project-organization: '{sonarcloud_project_organization}'
66     jobs:
67       - gerrit-maven-sonar
68
69 # promote container images to release registry
70 - project:
71     <<: *portal_ric_dashboard_common
72     name: portal-ric-dashboard-release
73     # maven release requires sigul which requires centos
74     # container release requires docker
75     build-node: centos7-docker-2c-8g
76     jobs:
77       - '{project-name}-gerrit-release-jobs'