fix(hicn.yaml): fix triggers for build/ftest jobs 09/36909/2
authorMauro Sardara <msardara@cisco.com>
Tue, 16 Aug 2022 13:09:14 +0000 (15:09 +0200)
committerMauro Sardara <msardara@cisco.com>
Tue, 16 Aug 2022 13:11:49 +0000 (15:11 +0200)
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ie8684cdafc13387a1294504cbe241f62cfff64d4
Signed-off-by: Mauro Sardara <msardara@cisco.com>
jjb/hicn/hicn.yaml

index 41b7620..3a37d1d 100644 (file)
           build-timeout: 120
 
     triggers:
-      - gerrit-trigger-checkstyle:
-          name: "{project}"
-          branch: "{branch}"
       - gerrit:
+          server-name: 'Primary'
+          trigger-on:
+            - comment-added-contains-event:
+                comment-contains-value: 'checkstyle_success'
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: '{name}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
           override-votes: true
           gerrit-build-notbuilt-verified-value: 0
           gerrit-build-successful-verified-value: 1
     name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
 
     project-type: freestyle
-    node: "{os}-builder-4c-4g"
+    node: "centos7-docker-4c-4g"
     concurrent: true
 
     properties:
 
     builders:
       - shell: !include-raw-escape:
-          - ../scripts/setup_executor_env.sh
-      - shell: !include-raw-escape:
-          - ../scripts/hicn/build.sh
+          - ../scripts/hicn/functest.sh
 
     publishers:
-      - fdio-infra-publish
+      - robot-report:
+          output-path: 'tests'
 
 - job-template:
     name: "hicn-merge-{stream}-{os}-{executor-arch}"