Merge "Add hicn job to build against vpp latest."
[ci-management.git] / jjb / hicn / hicn.yaml
index 4e1bb53..3fc0198 100644 (file)
@@ -15,7 +15,8 @@
 - project:
     name: hicn-x86_64
     jobs:
-      - "hicn-verify-{stream}-{os}-{executor-arch}"
+      - "hicn-verify-build-{stream}-{os}-{executor-arch}"
+      - "hicn-verify-functest-{stream}-{os}-{executor-arch}"
       - "hicn-merge-{stream}-{os}-{executor-arch}"
     project: "hicn"
     os: ubuntu2004
@@ -27,7 +28,7 @@
 - project:
     name: hicn-aarch64
     jobs:
-      - "hicn-verify-{stream}-{os}-{executor-arch}"
+      - "hicn-verify-build-{stream}-{os}-{executor-arch}"
       - "hicn-merge-{stream}-{os}-{executor-arch}"
     project: "hicn"
     os: ubuntu2004
           fixed-delay: 90
 
 - job-template:
-    name: "hicn-verify-{stream}-{os}-{executor-arch}"
+    name: "hicn-verify-build-{stream}-{os}-{executor-arch}"
 
     project-type: freestyle
     node: "builder-{os}-prod-{executor-arch}"
           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: "{project}"
+              branches:
+                - branch-compare-type: "ANT"
+                  branch-pattern: "**/{branch}"
+          override-votes: true
+          gerrit-build-notbuilt-verified-value: 0
+          gerrit-build-successful-verified-value: 1
+          # yamllint disable-line rule:line-length
+          notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
+          # yamllint disable-line rule:line-length
+          failed-message: "Build failed. No further verify jobs will be started."
+          successful-message: "build_success-{stream}-{os}-{executor-arch}"
+          skip-vote:
+            successful: true
+            failed: false
+            unstable: false
+            notbuilt: false
 
     builders:
       - shell: !include-raw-escape:
 
     publishers:
       - fdio-infra-publish
+      - archive-artifacts:
+          artifacts: "packages/*.deb, packages/*.rpm"
+
+- job-template:
+    name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
+
+    project-type: freestyle
+    node: "centos7-docker-4c-4g"
+    concurrent: true
+
+    properties:
+      - lf-infra-properties:
+          build-days-to-keep: "{build-days-to-keep}"
+
+    parameters:
+      - project-parameter:
+          project: "{project}"
+      - gerrit-parameter:
+          branch: "{branch}"
+      - os-parameter:
+          os: "{os}"
+      - stream-parameter:
+          stream: "{stream}"
+
+    scm:
+      - gerrit-trigger-scm:
+          credentials-id: "jenkins-gerrit-credentials"
+          refspec: "$GERRIT_REFSPEC"
+          choosing-strategy: "gerrit"
+
+    wrappers:
+      - fdio-infra-wrappers:
+          build-timeout: 120
+
+    triggers:
+      - gerrit-trigger-build:
+          name: "{project}"
+          branch: "{branch}"
+          stream: "{stream}"
+          os: "{os}"
+          executor-arch: "{executor-arch}"
+
+    builders:
+      - shell: !include-raw-escape:
+          - ../scripts/hicn/functest.sh
+
+    publishers:
+      - robot-report:
+          output-path: "tests"
 
 - job-template:
     name: "hicn-merge-{stream}-{os}-{executor-arch}"