blob: a772f334b21dcc038380e32057d69bfcc9d94224 [file] [log] [blame]
Anil Belurc9942192021-07-07 23:56:28 +10001---
2- project:
3 name: ric-app-bouncer-project-view
4 project-name: ric-app-bouncer
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _bouncer_common: &bouncer_common # values apply to all projects
Anil Belurc9942192021-07-07 23:56:28 +10009 name: bouncer-common
10 # git repo
11 project: ric-app/bouncer
12 # jenkins prefix
13 project-name: ric-app-bouncer
14 # maven settings file has docker credentials
15 mvn-settings: ric-app-bouncer-settings
16
17# verify INFO.yaml changes
18- project:
19 <<: *bouncer_common
20 name: ric-app-bouncer-info
21 build-node: centos7-builder-1c-1g
22 jobs:
23 - gerrit-info-yaml-verify
24
25# create docker image when source changes
26- project:
27 <<: *bouncer_common
28 # also used as image name
29 name: ric-app-bouncer
30 # image name
Anil Belur439502c2023-05-07 12:39:38 +100031 docker-name: "o-ran-sc/{name}"
Anil Belurd0306fe2021-07-09 09:30:52 +100032 # docker root
33 docker-root: Bouncer
Anil Belurc9942192021-07-07 23:56:28 +100034 # source type of image tag
35 container-tag-method: yaml-file
36 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100037 docker-build-args: "--network=host"
Anil Belurd0306fe2021-07-09 09:30:52 +100038 # tag file is in subdir
39 container-tag-yaml-dir: Bouncer
Anil Belurc9942192021-07-07 23:56:28 +100040 # trigger on any change other than a file in ./docs
41 gerrit_trigger_file_paths:
Anil Belur439502c2023-05-07 12:39:38 +100042 - compare-type: REG_EXP
43 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
44 - compare-type: REG_EXP
45 pattern: "bouncer/.*"
Anil Belurc9942192021-07-07 23:56:28 +100046 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100047 - "{project-name}-gerrit-docker-jobs"
Anil Belurc9942192021-07-07 23:56:28 +100048 stream:
Anil Belur439502c2023-05-07 12:39:38 +100049 - master:
50 branch: master
Anil Belurc9942192021-07-07 23:56:28 +100051
52# push nexus image from staging to release
53- project:
54 <<: *bouncer_common
55 name: ric-app-bouncer-release
56 # maven release requires sigul which requires centos
57 # container release requires docker
58 build-node: centos7-docker-2c-8g
59 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100060 - "{project-name}-gerrit-release-jobs"