Add jobs for ric-app/bouncer 81/6481/1
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 7 Jul 2021 13:56:28 +0000 (23:56 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 7 Jul 2021 13:57:24 +0000 (23:57 +1000)
Issue-ID: IT-22385
Change-Id: Ia12586b72ac6b71863187607c7797b9bc517ad4f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/ric-app-bouncer/ric-app-bouncer.yaml [new file with mode: 0644]

diff --git a/jjb/ric-app-bouncer/ric-app-bouncer.yaml b/jjb/ric-app-bouncer/ric-app-bouncer.yaml
new file mode 100644 (file)
index 0000000..9e7ac4c
--- /dev/null
@@ -0,0 +1,57 @@
+---
+- project:
+    name: ric-app-bouncer-project-view
+    project-name: ric-app-bouncer
+    views:
+      - project-view
+
+- bouncer_common: &bouncer_common
+    # values apply to all projects
+    name: bouncer-common
+    # git repo
+    project: ric-app/bouncer
+    # jenkins prefix
+    project-name: ric-app-bouncer
+    # maven settings file has docker credentials
+    mvn-settings: ric-app-bouncer-settings
+
+# verify INFO.yaml changes
+- project:
+    <<: *bouncer_common
+    name: ric-app-bouncer-info
+    build-node: centos7-builder-1c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+
+# create docker image when source changes
+- project:
+    <<: *bouncer_common
+    # also used as image name
+    name: ric-app-bouncer
+    # image name
+    docker-name: 'o-ran-sc/{name}'
+    # source type of image tag
+    container-tag-method: yaml-file
+    # use host network
+    docker-build-args: '--network=host'
+    # trigger on any change other than a file in ./docs
+    gerrit_trigger_file_paths:
+        - compare-type: REG_EXP
+          pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+        - compare-type: REG_EXP
+          pattern: 'bouncer/.*'
+    jobs:
+        - '{project-name}-gerrit-docker-jobs'
+    stream:
+        - master:
+            branch: master
+
+# push nexus image from staging to release
+- project:
+    <<: *bouncer_common
+    name: ric-app-bouncer-release
+    # maven release requires sigul which requires centos
+    # container release requires docker
+    build-node: centos7-docker-2c-8g
+    jobs:
+      - '{project-name}-gerrit-release-jobs'