Merge "Jenkins jjb setup for features"
[ci-management.git] / jjb / ric-plt-a1 / ric-plt-a1.yaml
index 4fe8e96..d4f5ade 100644 (file)
@@ -13,9 +13,9 @@
     jobs:
       - gerrit-info-yaml-verify
 
-- a1_docker_common: &a1_docker_common
-    # values apply to all A1 docker projects
-    name: a1-docker-common
+- a1_common: &a1_common
+    # values apply to all A1 projects
+    name: a1-common
     # git repo
     project: ric-plt/a1
     # jenkins job name prefix
     mvn-settings: ric-plt-a1-settings
 
 - project:
-    <<: *a1_docker_common
-    name: ric-plt-a1
+    <<: *a1_common
+    name: ric-plt-a1-docker
     # image name
-    docker-name: '{name}'
+    docker-name: 'o-ran-sc/ric-plt-a1'
     # source of docker tag
     container-tag-method: yaml-file
-    # use host network to clone from our gerrit
+    # use host network
     docker-build-args: '--network=host'
+    build-node: ubuntu1804-docker-4c-4g
     stream:
       - master:
           branch: master
     jobs:
-      - gerrit-python-xc-clm
       - '{project-name}-gerrit-docker-jobs'
 
-# runs unit tests on verify only
 - project:
-    <<: *a1_docker_common
-    name: ric-plt-a1-test
-    project-name: ric-plt-a1-test
-    # image name, but is never pushed
-    docker-name: '{name}'
-    # source of docker tag
-    container-tag-method: latest
-    docker-build-args: '-f Dockerfile-Unit-Test'
-    build-timeout: 10
+    <<: *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:
-      - master:
-          branch: master
+      # 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-nexusiq-clm
+    build-node: centos7-builder-1c-1g
+    nexus-iq-namespace: oran-
+    jobs:
+      - gerrit-python-xc-clm
+
+- project:
+    <<: *a1_common
+    name: ric-plt-a1-sonarqube
+    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
+    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=a1
+        sonar.python.coverage.reportPaths=coverage.xml
     jobs:
-      - gerrit-docker-verify
+      - gerrit-tox-sonarqube
 
 - project:
-    <<: *a1_docker_common
-    name: ric-plt-a1-sonar
+    <<: *a1_common
+    name: ric-plt-a1-release
     branch: master
-    sonarcloud: true
-    sonarcloud-project-key: o-ran-sc_ric-plt-a1
-    sonarcloud-project-organization: o-ran-sc
-    sonarcloud-api-token: d9e23c28dc39b6d7531d2ecabf122ce84e6253ef
+    # maven release requires sigul which requires centos
+    # container release requires docker
+    build-node: centos7-docker-2c-8g
     jobs:
-      - gerrit-tox-sonar
+      - '{project-name}-gerrit-release-jobs'