From 1ef12fa4fc9435f9518b5278c5ab179522a4ae8d Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 11 Aug 2022 13:11:37 +0200 Subject: feat(hicn.yaml): add functional tests jobs The approach to trigger the functional test job is the same adopted for triggering the build after the checkstyle. A comment "build_successful" will be added in gerrit by the build job, and this comment will in turn trigger the functional test job. Change-Id: I140160dfdd6fe80fdbe64848b9dc2c7a2b75cac4 Signed-off-by: Mauro Sardara --- jjb/hicn/hicn.yaml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 3 deletions(-) (limited to 'jjb/hicn/hicn.yaml') diff --git a/jjb/hicn/hicn.yaml b/jjb/hicn/hicn.yaml index 2667a8ae..f824c02f 100644 --- a/jjb/hicn/hicn.yaml +++ b/jjb/hicn/hicn.yaml @@ -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 @@ -161,7 +162,7 @@ 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}" @@ -195,6 +196,66 @@ - gerrit-trigger-checkstyle: name: "{project}" branch: "{branch}" + - gerrit: + 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" + skip-vote: + successful: true + failed: false + unstable: false + notbuilt: false + + + builders: + - shell: !include-raw-escape: + - ../scripts/setup_executor_env.sh + - shell: !include-raw-escape: + - ../scripts/hicn/build.sh + + publishers: + - fdio-infra-publish + +- job-template: + name: "hicn-verify-functest-{stream}-{os}-{executor-arch}" + + project-type: freestyle + node: "{os}-builder-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}" builders: - shell: !include-raw-escape: -- cgit 1.2.3-korg