Use Python job to run tests in dcaegen2/collectors/snmptrap 39/116939/3
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 18 Jan 2021 07:55:30 +0000 (07:55 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Fri, 22 Jan 2021 22:38:16 +0000 (22:38 +0000)
It allows to run tests using Python >= 3.8

Issue-ID: DCAEGEN2-2494
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I49d88fc8cc86c6908eb36c24560301f54984c4bf

jjb/dcaegen2/dcaegen2-collectors-snmptrap.yaml

index adf6310..f15beef 100644 (file)
@@ -2,28 +2,28 @@
 - project:
     name: dcaegen2-collectors-snmptrap
     project-name: 'dcaegen2-collectors-snmptrap'
-    jobs:
-      - '{project-name}-{stream}-verify-java'
-      - '{project-name}-{stream}-merge-java'
-      - '{project-name}-{stream}-release-version-java-daily'
-      - '{project-name}-gerrit-release-jobs':
-          build-node: centos7-docker-8c-8g
-
     project: 'dcaegen2/collectors/snmptrap'
+    python-version: python3.6
+    tox-dir: '.'
+    tox-envs: ''
     stream:
       - 'master':
           branch: 'master'
       - 'guilin':
           branch: 'guilin'
+    build-node: ubuntu1804-docker-8c-8g
     mvn-settings: 'dcaegen2-collectors-snmptrap-settings'
-    # due to a strange macro / variable translation problem this needs
-    # to be passed as a string block to properly get the properties
-    # correctly defined in the job
-    maven-deploy-properties: |
-      deployAtEnd=true
+    subproject:
+      - 'snmptrap':
+          pattern: '**'
+          path: 'snmptrap'
+    jobs:
+      - '{project-name}-{stream}-{subproject}-verify-python'
+      - '{project-name}-{subproject}-python-staging-{stream}'
+      - '{project-name}-{subproject}-python-release-{stream}'
+      - '{project-name}-{stream}-release-version-java-daily'
     files: '**'
     archive-artifacts: ''
-    build-node: 'ubuntu1804-docker-8c-8g'
 
 - project:
     name: dcaegen2-collectors-snmptrap-sonar