Revert "Refactor!: Update JJB code to comply 5.x"
[ci-management.git] / jjb / ric-plt-xapp-frame-py / ric-plt-xapp-frame-py.yaml
index 5274db0..8fb5807 100644 (file)
     project: ric-plt/xapp-frame-py
     # jenkins job name prefix
     project-name: ric-plt-xapp-frame-py
+    # maven settings file has credentials
+    mvn-settings: ric-plt-xapp-frame-py-settings
     # dont run docs on verify
     tox-envs: code,flake8
     build-node: ubuntu1804-builder-2c-2g
     pre-build-script: !include-raw-escape:
-      - ../shell/install-deb-nng-rmr.sh
+      - ../shell/install-deb-rmr.sh
+      - ../shell/install-deb-e2ap.sh
 
-# verify distribution and publish to test.pypi.org
 - project:
     name: ric-plt-xapp-frame-py-pypi
     <<: *py_common
+    # do not trigger on changes in docs, releases
+    gerrit_trigger_file_paths:
+        - compare-type: REG_EXP
+          pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
     jobs:
-      - '{project-name}-gerrit-pypi-jobs'
+      - gerrit-pypi-verify
+      - gerrit-pypi-stage
     stream:
       - master:
           branch: master
 
-# promote distribution from test.pypi.org to pypi.org
 - project:
     name: ric-plt-xapp-frame-py-release
     <<: *py_common
     jobs:
       - '{project-name}-gerrit-pypi-release-jobs'
 
-# analyze unit test coverage
 - project:
-    name: ric-plt-xapp-frame-py-sonar
+    name: ric-plt-xapp-frame-py-sonarqube
     <<: *py_common
-    sonarcloud: true
-    sonarcloud-api-token: '{sonarcloud_api_token}'
-    sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
-    sonarcloud-project-organization: '{sonarcloud_project_organization}'
+    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=ricxappframe
+        sonar.exclusions=setup.py,tests/*.py
+        sonar.python.coverage.reportPaths=coverage.xml
     jobs:
-      - gerrit-tox-sonar
+      - gerrit-tox-sonarqube
+
+- project:
+    <<: *py_common
+    name: ric-plt-xapp-frame-py-nexus-iq
+    build-node: centos7-builder-1c-1g
+    nexus-iq-namespace: oran-
+    jobs:
+      - gerrit-tox-nexus-iq-clm