X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fakraino-templates%2Fakraino-validation-templates.yaml;h=4cd18a880833954c5d9675644d4cc34ec28e1271;hp=b34638ebc5c77138afdb83841a57928cb35c361a;hb=85a3acbbf3b0726bb3241be911334b2aa7efe094;hpb=191228abb07ce70ee90eeca75f42e5d665c3bfe1 diff --git a/jjb/akraino-templates/akraino-validation-templates.yaml b/jjb/akraino-templates/akraino-validation-templates.yaml index b34638e..4cd18a8 100644 --- a/jjb/akraino-templates/akraino-validation-templates.yaml +++ b/jjb/akraino-templates/akraino-validation-templates.yaml @@ -8,7 +8,7 @@ build-timeout: 90 parameters: - - validation-job-parameters: + - lf-infra-parameters: &validation_lf_infra_parameters project: '{project}' branch: '{branch}' stream: '{stream}' @@ -22,21 +22,8 @@ blocking-jobs: - 'validation-docker-.*' block-level: 'NODE' - scm: - - validation-infra-gerrit-scm: - jenkins-ssh-credential: '{jenkins-ssh-credential}' - git-url: '{git-url}/{project}.git' - refspec: '' - refs_tag: '{refs_tag}' - stream: '{stream}' - submodule-recursive: false - submodule-timeout: '{submodule-timeout}' - submodule-disable: false - choosing-strategy: default - triggers: - # Build nigtly at 12:10 AM - - timed: '10 0 * * *' + triggers: '{obj:triggers}' builders: - multijob: @@ -57,7 +44,10 @@ publishers: - email: - recipients: 'cristina.pauna@enea.com' + recipients: > + cristina.pauna@enea.com + juha.kosonen@nokia.com + - job-template: id: akraino-validation-docker-specific-arch @@ -67,11 +57,7 @@ build-timeout: 75 parameters: - - validation-job-parameters: - project: '{project}' - branch: '{branch}' - stream: '{stream}' - arch_tag: '{arch_tag}' + - lf-infra-parameters: *validation_lf_infra_parameters properties: - build-blocker: @@ -79,13 +65,14 @@ blocking-jobs: - 'validation-docker-build-.*' block-level: 'NODE' - scm: - - validation-infra-gerrit-scm: + scm: &validation_scm + # lf-infra-gerrit-scm hardcodes branch specifier to refs/heads; while + # lf-infra-github-scm does not, allowing us to pass a fully custom '{branch}' + - lf-infra-github-scm: jenkins-ssh-credential: '{jenkins-ssh-credential}' - git-url: '{git-url}/{project}.git' - refspec: '' - refs_tag: '{refs_tag}' - stream: '{stream}' + url: '{git-url}/{project}.git' + refspec: '$GERRIT_REFSPEC' + branch: '$STREAM' submodule-recursive: false submodule-timeout: '{submodule-timeout}' submodule-disable: false @@ -95,63 +82,90 @@ - lf-infra-docker-login: global-settings-file: global-settings settings-file: '{mvn-settings}' - - conditional-step: - condition-kind: regex-match - regex: '^tags$' - label: '{refs_tag}' - steps: - - shell: | - #!/bin/bash -ex - echo "export TAG_VER=$STREAM" >> tag_version.sh - shell: | #!/bin/bash -ex - if [ -f tag_version.sh ]; then source tag_version.sh; fi + if [ "{branch}" != "{stream}" ]; then export TAG_VER=$STREAM; fi make -k -C docker push-all - rm -f tag_version.sh - - shell: | - #!/bin/bash -ex docker system prune -af - job-template: id: akraino-validation-docker-manifest name: 'validation-docker-manifest-{stream}' - node: 'ubuntu1604-docker-8c-8g' + node: 'ubuntu1804-docker-8c-8g' build-timeout: 15 parameters: - - validation-job-parameters: - project: '{project}' - branch: '{branch}' - stream: '{stream}' + - lf-infra-parameters: *validation_lf_infra_parameters disabled: '{obj:disabled}' - scm: - - validation-infra-gerrit-scm: - jenkins-ssh-credential: '{jenkins-ssh-credential}' - git-url: '{git-url}/{project}.git' - refspec: '' - refs_tag: '{refs_tag}' - stream: '{stream}' - submodule-recursive: false - submodule-timeout: '{submodule-timeout}' - submodule-disable: false - choosing-strategy: default + scm: *validation_scm builders: - lf-infra-docker-login: global-settings-file: global-settings settings-file: '{mvn-settings}' - - conditional-step: - condition-kind: regex-match - regex: '^tags$' - label: '{refs_tag}' - steps: - - shell: | - #!/bin/bash -ex - echo "export TAG_VER=$STREAM" >> tag_version.sh - shell: | #!/bin/bash -ex - if [ -f tag_version.sh ]; then source tag_version.sh; fi + if [ "{branch}" != "{stream}" ]; then export TAG_VER=$STREAM; fi for sd in docker/*/.; do make -k -C $sd .push_manifest; done - rm -f tag_version.sh + +- job-template: + id: akraino-validation-lab-daily + name: 'validation-{validation_lab}-daily-{stream}' + concurrent: true + node: '{build-node}' + parameters: + - {'lab_params'} + builders: + - trigger-builds: + - project: 'bluval-daily-{stream}' + predefined-parameters: + LAB_SILO={validation_lab} + same-node: true + current-parameters: true + block: true + +- job-template: + id: bluval-run-daily-tests + name: 'bluval-daily-{stream}' + concurrent: true + node: '{build-node}' + parameters: + - lf-infra-parameters: *validation_lf_infra_parameters + - string: + name: DEPLOY_SCENARIO + default: '' + - {'bluval-defaults'} + + scm: + - lf-infra-github-scm: + jenkins-ssh-credential: '{jenkins-ssh-credential}' + url: '{git-url}/{project}.git' + refspec: '$GERRIT_REFSPEC' + branch: '$GERRIT_BRANCH' + submodule-recursive: false + submodule-timeout: '{submodule-timeout}' + submodule-disable: true + choosing-strategy: default + + builders: + - description-setter: + description: "POD: $NODE_NAME
BLUEPRINT: $BLUEPRINT
LAB: $LAB_SILO
LAYER: $LAYER" + - lf-infra-create-netrc: + server-id: logs + - shell: !include-raw-escape: + - ../shell/run_bluval.sh + + publishers: + - robot: + output-path: 'results' + report-html: '**/report.html' + log-html: '**/log.html' + output-xml: '**/output.xml' + - logparser: + use-project-rules: true + parse-rules: "./bluval/rules.txt" + unstable-on-warning: false + fail-on-error: true + show-graphs: true