CI: Deprecate Jenkins Sonar jobs
[ci-management.git] / jjb / ric-plt-a1 / ric-plt-a1.yaml
index aa543d2..fe72d25 100644 (file)
@@ -5,35 +5,40 @@
     views:
       - project-view
 
-- a1_docker_common: &a1_docker_common
-    # values apply to all RIC docker-build projects.
-    # factored out in case a1 needs multiple projects.
-    # use a specific name to prevent reuse attempts
-    # bcos anchors don't cross document boundaries.
-    name: a1-docker-common
-    build-node: ubuntu1804-docker-4c-4g
-    # pull from the public mirror + releases registry
-    container-public-registry: nexus3.o-ran-sc.org:10001
-    # push to the staging repo bcos all builds are RCs
-    container-push-registry:  nexus3.o-ran-sc.org:10004
-    # use host network to clone from our gerrit
-    docker-build-args: '--network=host'
+- _a1_common: &a1_common # values apply to all A1 projects
+    name: a1-common
+    # git repo
+    project: ric-plt/a1
+    # jenkins job name prefix
+    project-name: ric-plt-a1
+    # maven settings file has docker credentials
+    mvn-settings: ric-plt-a1-settings
+
+- project:
+    <<: *a1_common
+    name: ric-plt-a1-docker
+    # image name
+    docker-name: "o-ran-sc/ric-plt-a1"
     # source of docker tag
-    docker-use-params-from: yaml-file-params
+    container-tag-method: yaml-file
+    # use host network
+    docker-build-args: "--network=host"
+    build-node: ubuntu1804-docker-4c-4g
+    # do not trigger on changes in docs, releases
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
     stream:
       - master:
           branch: master
+    jobs:
+      - "{project-name}-gerrit-docker-jobs"
 
 - project:
-    name: ric-plt-a1
-    # git repo
-    project: ric-plt/a1
-    # jenkins job name prefix
-    project-name: '{name}'
-    # image name
-    docker-name: '{name}'
-    # maven settings file has docker credentials
-    mvn-settings: ric-plt-a1-settings
+    <<: *a1_common
+    name: ric-plt-a1-release
+    # maven release requires sigul which requires centos
+    # container release requires docker
+    build-node: centos7-docker-2c-8g
     jobs:
-      - '{project-name}-gerrit-docker-jobs'
-    <<: *a1_docker_common
+      - "{project-name}-gerrit-release-jobs"