X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=inline;f=jjb%2Fakraino-templates%2Fakraino-validation-templates.yaml;h=c84e4c400407b507dce69fb98a5e7e8804a834b6;hb=6ca12719612476bf0d40e10aa977eaf9176a1421;hp=e8c96b4c18d6f23082568030de977b144afec47f;hpb=efd5b280c54c001408bce9f4e4822389246dd159;p=ci-management.git
diff --git a/jjb/akraino-templates/akraino-validation-templates.yaml b/jjb/akraino-templates/akraino-validation-templates.yaml
index e8c96b4..c84e4c4 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}'
@@ -21,22 +21,9 @@
use-build-blocker: true
blocking-jobs:
- 'validation-docker-.*'
- blocking-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
+ block-level: 'NODE'
- 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,25 +57,22 @@
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:
use-build-blocker: true
blocking-jobs:
- 'validation-docker-build-.*'
- blocking-level: 'NODE'
- scm:
- - validation-infra-gerrit-scm:
+ block-level: 'NODE'
+ 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,21 +82,10 @@
- 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:
@@ -119,39 +95,77 @@
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