X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ci%2Fjjb%2Fakraino-icn-templates.yaml;h=f322491736df2e5a9db59bfcfcc987aa89392c1d;hb=c8483eeb22b493d194b9b9d5b6caac911d87989b;hp=f610a884bbd61994b734aab25e4b6bf81ba21c7b;hpb=d97c464fe4c7ae16385bf101405a1f1f6a2dcb09;p=icn.git
diff --git a/ci/jjb/akraino-icn-templates.yaml b/ci/jjb/akraino-icn-templates.yaml
index f610a88..f322491 100644
--- a/ci/jjb/akraino-icn-templates.yaml
+++ b/ci/jjb/akraino-icn-templates.yaml
@@ -1,13 +1,14 @@
---
- job-template:
- id: icn-stream-verify
- name: 'icn-{stream}-verify'
+ id: icn-stream-vagrant-verify-target
+ name: 'icn-{stream}-vagrant-verify-{target}'
defaults: icn
archive-artifacts: >
**/*.log
build-days-to-keep: 30
build-timeout: 60
stream: master
+ target: verifier
project-type: freestyle
submodule-recursive: true
#node: '{build-node}'
@@ -53,11 +54,185 @@
- timed: "@midnight"
builders:
- - shell: !include-raw-escape:
- - shell/verify.sh
+ - shell: !include-raw:
+ - shell/vagrant-verify.sh
publishers:
+ - postbuildscript:
+ builders:
+ - role: BOTH
+ build-on:
+ - ABORTED
+ - FAILURE
+ - NOT_BUILT
+ - SUCCESS
+ - UNSTABLE
+ build-steps:
+ # all files should be owned by jenkins, for cleanup
+ - shell: 'sudo chown jenkins -R .'
- icn-infra-publish
# - email:
# recipients: icn.jenkins@intel.com
+- job-template:
+ id: icn-stream-bm-verify-target
+ name: 'icn-{stream}-bm-verify-{target}'
+ defaults: icn
+ archive-artifacts: >
+ **/*.log
+ build-days-to-keep: 30
+ build-timeout: 60
+ stream: master
+ target: verifier
+ project-type: freestyle
+ submodule-recursive: true
+ #node: '{build-node}'
+
+ properties:
+ - lf-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ stream: '{stream}'
+ branch: '{branch}'
+ lftools-version: '{lftools-version}'
+
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: '{archive-artifacts}'
+ description: Artifacts to archive to the logs server.
+
+ - string:
+ name: NEXUS_LOG_SUBDIR
+ default: '{nexus_log_subdir}'
+ description: Organization sub dir on Akraino Nexus server.
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ scm:
+ - lf-infra-gerrit-scm:
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+ git-url: '{git-url}/{project}.git'
+ refspec: '$GERRIT_REFSPEC'
+ branch: '$GERRIT_BRANCH'
+ submodule-recursive: '{submodule-recursive}'
+ submodule-timeout: '{submodule-timeout}'
+ submodule-disable: false
+ choosing-strategy: 'gerrit'
+
+ triggers:
+ - timed: "@midnight"
+
+ builders:
+ - shell: !include-raw:
+ - shell/bm-verify.sh
+
+ publishers:
+ - postbuildscript:
+ builders:
+ - role: BOTH
+ build-on:
+ - ABORTED
+ - FAILURE
+ - NOT_BUILT
+ - SUCCESS
+ - UNSTABLE
+ build-steps:
+ # all files should be owned by jenkins, for cleanup
+ - shell: 'sudo chown jenkins -R .'
+ - icn-infra-publish
+# - email:
+# recipients: icn.jenkins@intel.com
+
+- job-template:
+ id: icn-bluval-run-daily-tests
+ name: 'icn-bluval-daily-{stream}'
+ concurrent: true
+ node: '{build-node}'
+ defaults: icn
+ parameters:
+ - lf-infra-parameters: *validation_lf_infra_parameters
+ - string:
+ name: CLUSTER_MASTER_IP
+ default: '{bluval-cluster-master-ip}'
+ description: 'IP address to connect to the cluster master'
+ - string:
+ name: CLUSTER_SSH_USER
+ default: '{bluval-cluster-ssh-user}'
+ description: 'SSH username to connect to the cluster master '
+ - string:
+ name: CLUSTER_SSH_KEY
+ default: '{bluval-cluster-ssh-key}'
+ description: 'SSH key to connect to the cluster master'
+ - string:
+ name: BLUEPRINT
+ default: '{bluval-blueprint}'
+ description: 'Blueprint used'
+ - string:
+ name: LAYER
+ default: '{bluval-layer}'
+ description: 'Layer ("os", "k8s" or blank to run all)'
+ - string:
+ name: VERSION
+ default: '{bluval-version}'
+ description: 'Version or branch'
+ - string:
+ name: OPTIONAL
+ default: '{bluval-optional}'
+ description: 'If set to yes run optional tests'
+ - string:
+ name: PULL
+ default: '{bluval-pull}'
+ description: 'If set to yes pull docker images before run'
+ - string:
+ name: LAB_SILO
+ default: '{bluval-lab-silo}'
+ description: 'Name of silo in Nexus'
+
+ 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
+
+ triggers:
+ - timed: "@midnight"
+
+ builders:
+ - description-setter:
+ description: "POD: $NODE_NAME
BLUEPRINT: $BLUEPRINT
LAB: $LAB_SILO
LAYER: $LAYER"
+ - shell: !include-raw-escape:
+ shell/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
+ - postbuildscript:
+ mark-unstable-if-failed: true
+ builders:
+ - build-on:
+ - SUCCESS
+ - UNSTABLE
+ - FAILURE
+ build-steps:
+ - shell: !include-raw-escape:
+ shell/bluval-postbuild.sh