Refactor!: Update JJB code to comply with 5.x
[ci-management.git] / jjb / ric-plt-a1 / ric-plt-a1.yaml
index 80a9262..983b890 100644 (file)
@@ -13,7 +13,7 @@
     jobs:
       - gerrit-info-yaml-verify
 
-- a1_common: &a1_common
+- _a1_common: &a1_common
     # values apply to all A1 projects
     name: a1-common
     # git repo
 
 - project:
     <<: *a1_common
-    name: ric-plt-a1
+    name: ric-plt-a1-docker
     # image name
-    docker-name: 'o-ran-sc/{name}'
+    docker-name: 'o-ran-sc/ric-plt-a1'
     # source of docker tag
     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
 
 - project:
     <<: *a1_common
-    name: ric-plt-a1-verify
-    # the install script assumes an ubuntu image
-    build-node: ubuntu1804-builder-2c-2g
-    pre-build-script: !include-raw-escape:
-      - ../shell/install-deb-nng-rmr.sh
-    python-version: python3
-    stream:
-      # run verify on all branches
-      # the ANT pattern is **/{branch}, we are exploiting that.
-      - all:
-          branch: '*'
-    jobs:
-      - gerrit-tox-verify
-
-- project:
-    <<: *a1_common
-    name: ric-plt-a1-sonar
-    python-version: python3
-    # the install script assumes an ubuntu image
-    build-node: ubuntu1804-builder-2c-2g
-    pre-build-script: !include-raw-escape:
-      - ../shell/install-deb-nng-rmr.sh
-    sonarcloud: true
-    sonarcloud-api-token: '{sonarcloud_api_token}'
-    sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
-    sonarcloud-project-organization: '{sonarcloud_project_organization}'
-    jobs:
-      - gerrit-tox-sonar
-
-- project:
-    <<: *a1_common
-    name: ricc-plt-a1-release
-    branch: master
+    name: ric-plt-a1-release
     # maven release requires sigul which requires centos
     # container release requires docker
     build-node: centos7-docker-2c-8g