Merge "Add hicn job to build against vpp latest."
authorPeter Mikus <peter.mikus@protonmail.ch>
Tue, 30 Aug 2022 05:40:15 +0000 (05:40 +0000)
committerGerrit Code Review <gerrit@fd.io>
Tue, 30 Aug 2022 05:40:15 +0000 (05:40 +0000)
1  2 
jjb/hicn/hicn.yaml

diff --combined jjb/hicn/hicn.yaml
@@@ -15,8 -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
@@@ -28,7 -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
        - hicn:
            branch: "master"
  
+ - project:
+     name: hicn-vpp-latest-x86_64
+     jobs:
+       - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
+     project: "hicn"
+     os: ubuntu2004
+     executor-arch: "x86_64"
+     stream:
+       - master:
+           branch: "master"
+ - project:
+     name: hicn-vpp-latest-aarch64
+     jobs:
+       - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
+     project: "hicn"
+     os: ubuntu2004
+     executor-arch: "aarch64"
+     stream:
+       - master:
+           branch: "master"
  - project:
      name: hicn-view
      views:
            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}"
      publishers:
        - fdio-infra-publish
  
+ - job-template:
+     name: "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
+     project-type: freestyle
+     node: "builder-{os}-prod-{executor-arch}"
+     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:
+       - timed: 'H H * * *'
+       - gerrit-trigger-manually-triggered:
+           comment-trigger-value: 'verify-vpp-latest'
+           name: '{project}'
+           branch: '{branch}'
+     builders:
+       - shell: !include-raw-escape:
+           - ../scripts/setup_executor_env.sh
+       - shell: !include-raw-escape:
+           - ../scripts/hicn/build-vpp-latest.sh
+     publishers:
+       - fdio-infra-publish
  - project:
      name: hicn-info
      project-name: hicn