Merge "Use Go verify job for nonrtric"
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 4 Jan 2022 17:13:58 +0000 (17:13 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Tue, 4 Jan 2022 17:13:58 +0000 (17:13 +0000)
jjb/pti-o2/pti-o2.yaml
jjb/ric-app-rc/ric-app-rc.yaml [new file with mode: 0644]

index 5f6e62f..5ff1747 100644 (file)
       - master:
           branch: master
 
-- project:
-    <<: *pti_o2_common
-    <<: *pti_o2_python
-    name: pti-o2-imsdms-sonarqube
-    sonar-project-file: ""
-    sonar-properties: |
-        sonar.login={sonarcloud_api_token}
-        sonar.projectKey={sonarcloud_project_organization}_{project-name}
-        sonar.projectName={project-name}
-        sonar.organization={sonarcloud_project_organization}
-        sonar.build.sourceEncoding=UTF-8
-        sonar.sources=src
-        sonar.python.coverage.reportPaths=coverage.xml
-    jobs:
-      - gerrit-tox-sonarqube
-
 - pti_o2_docker: &pti_o2_docker_common
     <<: *pti_o2_common
     # values apply to all pti/o2 docker projects
@@ -73,6 +57,7 @@
     container-tag-method: yaml-file
     # docker-root: src
     # if no container-tag-yaml-dir is defined, container-tag.yml is taken from the docker-root
+    container-tag-yaml-dir: stages
     build-node: ubuntu1804-docker-4c-4g
     stream:
       - master:
 
 - project:
     <<: *pti_o2_docker_common
-    name: pti-o2-imsdms-docker-verify
-    # jenkins job name prefix
-    project-name: '{name}'
-    container-tag-method: latest
-    docker-build-args: '--network=host -f Dockerfile'
+    name: pti-o2-imsdms
+    # do not trigger on changes in docs, releases
+    gerrit_trigger_file_paths:
+        - compare-type: REG_EXP
+          pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
     jobs:
-      - gerrit-docker-verify
+      - '{project-name}-gerrit-docker-jobs'
+    stream:
+      - master:
+          branch: master
 
 - project:
     <<: *pti_o2_docker_common
@@ -94,9 +82,9 @@
     # maven release requires sigul which requires centos
     # container release requires docker
     build-node: centos7-docker-2c-8g
-    container-tag-yaml-dir: release
+    container-tag-yaml-dir: releases
     gerrit_trigger_file_paths:
       - compare-type: REG_EXP
-        pattern: 'release/.*'
+        pattern: 'releases\/.*\.yaml'
     jobs:
       - '{project-name}-gerrit-release-jobs'
diff --git a/jjb/ric-app-rc/ric-app-rc.yaml b/jjb/ric-app-rc/ric-app-rc.yaml
new file mode 100644 (file)
index 0000000..273a25a
--- /dev/null
@@ -0,0 +1,55 @@
+---
+- project:
+    name: ric-app-rc-project-view
+    project-name: ric-app-rc
+    views:
+      - project-view
+
+- rc_common: &rc_common
+    # values apply to all projects
+    name: rc-common
+    # git repo
+    project: ric-app/rc
+    # jenkins prefix
+    project-name: ric-app-rc
+    # maven settings file has docker credentials
+    mvn-settings: ric-app-rc-settings
+
+# verify INFO.yaml changes
+- project:
+    <<: *rc_common
+    name: ric-app-rc-info
+    build-node: centos7-builder-1c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+
+# create docker image when source changes
+- project:
+    <<: *rc_common
+    # also used as image name
+    name: ric-app-rc
+    # 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/|\/COMMIT_MSG).)*$'
+    jobs:
+        - '{project-name}-gerrit-docker-jobs'
+    stream:
+        - master:
+            branch: master
+
+# push nexus image from staging to release
+- project:
+    <<: *rc_common
+    name: ric-app-rc-release
+    # maven release requires sigul which requires centos
+    # container release requires docker
+    build-node: centos7-docker-2c-8g
+    jobs:
+      - '{project-name}-gerrit-release-jobs'