Publish the Functest K8s v1.29 jobs
[releng.git] / jjb / functest / functest-kubernetes-pi.yaml
index 81ab559..efab56c 100644 (file)
 
 - functest-kubernetes-pi-params: &functest-kubernetes-pi-params
     name: 'functest-kubernetes-pi-params'
+    tag:
+      - latest:
+          node: v1.30
+      - v1.29:
+          node: v1.29
+      - v1.28:
+          node: v1.28
+      - v1.27:
+          node: v1.27
+      - v1.26:
+          node: v1.26
+      - arm-latest:
+          node: v1.30
+      - arm-v1.29:
+          node: v1.29
+      - arm-v1.28:
+          node: v1.28
+      - arm-v1.27:
+          node: v1.27
+      - arm-v1.26:
+          node: v1.26
+      - arm64-latest:
+          node: v1.30
+      - arm64-v1.29:
+          node: v1.29
+      - arm64-v1.28:
+          node: v1.28
+      - arm64-v1.27:
+          node: v1.27
+      - arm64-v1.26:
+          node: v1.26
+
+- functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params: &functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params'
+    repo: 'ollivier'
+    container: 'functest-kubernetes-healthcheck'
+    port:
+    tag:
+      - latest:
+          node: v1.30
+      - v1.29:
+          node: v1.29
+      - v1.28:
+          node: v1.28
+      - v1.27:
+          node: v1.27
+      - v1.26:
+          node: v1.26
+      - arm-latest:
+          node: v1.30
+      - arm-v1.29:
+          node: v1.29
+      - arm-v1.28:
+          node: v1.28
+      - arm-v1.27:
+          node: v1.27
+      - arm-v1.26:
+          node: v1.26
+      - arm64-latest:
+          node: v1.30
+      - arm64-v1.29:
+          node: v1.29
+      - arm64-v1.28:
+          node: v1.28
+      - arm64-v1.27:
+          node: v1.27
+      - arm64-v1.26:
+          node: v1.26
+
+- functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-params: &functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-params
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-params'
+    repo: 'ollivier'
+    container: 'functest-kubernetes-smoke'
+    port:
+    tag:
+      - latest:
+          node: v1.30
+      - v1.29:
+          node: v1.29
+      - v1.28:
+          node: v1.28
+      - v1.27:
+          node: v1.27
+      - v1.26:
+          node: v1.26
+      - arm-latest:
+          node: v1.30
+      - arm-v1.29:
+          node: v1.29
+      - arm-v1.28:
+          node: v1.28
+      - arm-v1.27:
+          node: v1.27
+      - arm-v1.26:
+          node: v1.26
+      - arm64-latest:
+          node: v1.30
+      - arm64-v1.29:
+          node: v1.29
+      - arm64-v1.28:
+          node: v1.28
+      - arm64-v1.27:
+          node: v1.27
+      - arm64-v1.26:
+          node: v1.26
+
+- functest-kubernetes-pi-ollivier-functest-kubernetes-security-params: &functest-kubernetes-pi-ollivier-functest-kubernetes-security-params
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-params'
+    repo: 'ollivier'
+    container: 'functest-kubernetes-security'
+    port:
+    tag:
+      - latest:
+          node: v1.30
+      - v1.29:
+          node: v1.29
+      - v1.28:
+          node: v1.28
+      - v1.27:
+          node: v1.27
+      - v1.26:
+          node: v1.26
+      - arm-latest:
+          node: v1.30
+      - arm-v1.29:
+          node: v1.29
+      - arm-v1.28:
+          node: v1.28
+      - arm-v1.27:
+          node: v1.27
+      - arm-v1.26:
+          node: v1.26
+      - arm64-latest:
+          node: v1.30
+      - arm64-v1.29:
+          node: v1.29
+      - arm64-v1.28:
+          node: v1.28
+      - arm64-v1.27:
+          node: v1.27
+      - arm64-v1.26:
+          node: v1.26
+
+- functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-params: &functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-params
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-params'
+    repo: 'ollivier'
+    container: 'functest-kubernetes-benchmarking'
+    port:
+    tag:
+      - latest:
+          node: v1.30
+      - v1.29:
+          node: v1.29
+      - v1.28:
+          node: v1.28
+      - v1.27:
+          node: v1.27
+      - v1.26:
+          node: v1.26
+      - arm-latest:
+          node: v1.30
+      - arm-v1.29:
+          node: v1.29
+      - arm-v1.28:
+          node: v1.28
+      - arm-v1.27:
+          node: v1.27
+      - arm-v1.26:
+          node: v1.26
+      - arm64-latest:
+          node: v1.30
+      - arm64-v1.29:
+          node: v1.29
+      - arm64-v1.28:
+          node: v1.28
+      - arm64-v1.27:
+          node: v1.27
+      - arm64-v1.26:
+          node: v1.26
+
+- functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-params: &functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-params
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-params'
     repo: 'ollivier'
+    container: 'functest-kubernetes-cnf'
     port:
     tag:
       - latest:
-          slave: lf-virtual1-7
-      - v1.21:
-          slave: lf-virtual1-6
-      - leguer:
-          slave: lf-virtual1-5
-      - kali:
-          slave: lf-virtual1-4
+          node: v1.30
+      - v1.29:
+          node: v1.29
+      - v1.28:
+          node: v1.28
+      - v1.27:
+          node: v1.27
+      - v1.26:
+          node: v1.26
       - arm-latest:
-          slave: lf-virtual1-7
-      - arm-v1.21:
-          slave: lf-virtual1-6
-      - arm-leguer:
-          slave: lf-virtual1-5
-      - arm-kali:
-          slave: lf-virtual1-4
+          node: v1.30
+      - arm-v1.29:
+          node: v1.29
+      - arm-v1.28:
+          node: v1.28
+      - arm-v1.27:
+          node: v1.27
+      - arm-v1.26:
+          node: v1.26
       - arm64-latest:
-          slave: lf-virtual1-7
-      - arm64-v1.21:
-          slave: lf-virtual1-6
-      - arm64-leguer:
-          slave: lf-virtual1-5
-      - arm64-kali:
-          slave: lf-virtual1-4
+          node: v1.30
+      - arm64-v1.29:
+          node: v1.29
+      - arm64-v1.28:
+          node: v1.28
+      - arm64-v1.27:
+          node: v1.27
+      - arm64-v1.26:
+          node: v1.26
 
 - functest-kubernetes-pi-jobs: &functest-kubernetes-pi-jobs
     name: 'functest-kubernetes-pi-jobs'
     current-parameters: true
 
 - parameter:
-    name: functest-kubernetes-pi-slave
+    name: functest-kubernetes-pi-node
     parameters:
       - label:
-          name: slave
-          default: '{slave}'
+          name: node
+          default: '{node}'
 
 - parameter:
     name: functest-kubernetes-pi-build_tag
 - functest-kubernetes-pi-run-containers: &functest-kubernetes-pi-run-containers
     name: 'functest-kubernetes-pi-run-containers'
     <<: *functest-kubernetes-pi-containers
-    test: '{test}'
     privileged: '{privileged}'
+    volumes: '{volumes}'
+    env: '{env}'
     network: '{network}'
+    uid: '{uid}'
+    gid: '{gid}'
+    published_ports: '{published_ports}'
 
 - builder:
     name: functest-kubernetes-pi-pull-containers
     builders:
       - shell: |
           set +x
+          volumes=;
+          if [ "{volumes}" != "None" ]; then
+            for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
+              do volumes="-v $i $volumes"; done
+          fi
+          env=;
+          if [ "{env}" != "None" ]; then
+            for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
+              do env="-e $i $env"; done
+          fi
+          published_ports=;
+          if [ "{published_ports}" != "None" ]; then
+            for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \
+              do published_ports="-p $i $published_ports"; done
+          fi
           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/results || true
           if [ "{repo}" = "_" ]; then
             image={container}:{tag}
           else
             image={repo}:{port}/{container}:{tag}
           fi
+          mkdir -p $WORKSPACE/results
+          chown {uid}:{gid} $WORKSPACE/results
           docker run --rm \
             --privileged={privileged} \
             --network={network} \
+            $volumes \
+            $env \
+            $published_ports \
             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
             -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
-            -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
+            -v /home/opnfv/functest-kubernetes/.boto:/etc/boto.cfg \
             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
-            -e NODE_NAME=$slave \
+            -e NODE_NAME=$node \
             -e BUILD_TAG=$BUILD_TAG \
             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-            -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
-            -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
             $image run_tests -t {test} -p -r
 
 - builder:
           docker rmi $image || true
 
 - job-template:
-    name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-pull'
     parameters:
-      - functest-kubernetes-pi-slave:
-          slave: '{slave}'
+      - functest-kubernetes-pi-node:
+          node: '{node}'
     builders:
       - functest-kubernetes-pi-pull-containers:
           <<: *functest-kubernetes-pi-containers
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-pull'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-healthcheck'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-pull'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-rmi'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-remove-images:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-pull'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-smoke'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-rmi'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-rmi'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-pull'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-pull-containers:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-pull'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-security'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-pull'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-pull'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-rmi'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-remove-images:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-pull'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-benchmarking'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-rmi'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-rmi'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-pull'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-pull-containers:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-pull'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-cnf'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-pull'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-security-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-pull'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-pull'
 
 - job-template:
-    name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-rmi'
     parameters:
-      - functest-kubernetes-pi-slave:
-          slave: '{slave}'
+      - functest-kubernetes-pi-node:
+          node: '{node}'
     builders:
       - functest-kubernetes-pi-remove-images:
           <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-rmi'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-healthcheck'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-rmi'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-security-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-rmi'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-pull'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-pull-containers:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-rmi'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-smoke'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-pull'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-pull'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-rmi'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-remove-images:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-rmi'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-security'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-rmi'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-rmi'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-pull'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-pull-containers:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
-    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-rmi'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-benchmarking'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-pull'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-pull'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-rmi'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+    builders:
+      - functest-kubernetes-pi-remove-images:
+          <<: *functest-kubernetes-pi-containers
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-rmi'
-    <<: *functest-kubernetes-pi-params
-    container: 'functest-kubernetes-cnf'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-params
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-rmi'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-rmi'
 
 - job-template:
-    name: 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-{test}-run'
     parameters:
-      - functest-kubernetes-pi-slave:
-          slave: '{slave}'
+      - functest-kubernetes-pi-node:
+          node: '{node}'
       - functest-kubernetes-pi-build_tag:
           build_tag: ''
       - functest-kubernetes-pi-DEPLOY_SCENARIO:
     builders:
       - functest-kubernetes-pi-run-containers:
           <<: *functest-kubernetes-pi-run-containers
+          test: '{test}'
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck'
-    <<: *functest-kubernetes-pi-params
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params
+    volumes:
+      - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
+      - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
+    env:
+      - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+    published_ports:
     container: 'functest-kubernetes-healthcheck'
     test:
       - k8s_quick
       - k8s_smoke
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-{tag}-{test}-run'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-{test}-run'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+      - functest-kubernetes-pi-build_tag:
+          build_tag: ''
+      - functest-kubernetes-pi-DEPLOY_SCENARIO:
+          DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
+    builders:
+      - functest-kubernetes-pi-run-containers:
+          <<: *functest-kubernetes-pi-run-containers
+          test: '{test}'
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke'
-    <<: *functest-kubernetes-pi-params
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-params
+    volumes:
+      - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
+      - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
+    env:
+      - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+    published_ports:
     container: 'functest-kubernetes-smoke'
     test:
       - xrally_kubernetes
-      - k8s_io
       - k8s_conformance
       - k8s_conformance_serial
       - sig_api_machinery
       - sig_apps
       - sig_apps_serial
       - sig_auth
-      - sig_cli
-      - sig_cli_serial
       - sig_cluster_lifecycle
       - sig_instrumentation
       - sig_network
-      - sig_network_serial
       - sig_node
       - sig_scheduling_serial
       - sig_storage
       - sig_storage_serial
     privileged: 'false'
     network: bridge
-    exclude:
-      - {'tag': 'latest', 'test': 'k8s_io'}
-      - {'tag': 'v1.21', 'test': 'k8s_io'}
-      - {'tag': 'jerma', 'test': 'k8s_io'}
-      - {'tag': 'arm-latest', 'test': 'k8s_io'}
-      - {'tag': 'arm-v1.21', 'test': 'k8s_io'}
-      - {'tag': 'arm64-latest', 'test': 'k8s_io'}
-      - {'tag': 'arm64-v1.21', 'test': 'k8s_io'}
+    uid: 1000
+    gid: 1000
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-{test}-run'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-{test}-run'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+      - functest-kubernetes-pi-build_tag:
+          build_tag: ''
+      - functest-kubernetes-pi-DEPLOY_SCENARIO:
+          DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
+    builders:
+      - functest-kubernetes-pi-run-containers:
+          <<: *functest-kubernetes-pi-run-containers
+          test: '{test}'
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-security'
-    <<: *functest-kubernetes-pi-params
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-security-params
+    volumes:
+      - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
+      - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
+    env:
+      - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+    published_ports:
     container: 'functest-kubernetes-security'
     test:
       - kube_hunter
       - kube_bench_node
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-security-{tag}-{test}-run'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-{test}-run'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+      - functest-kubernetes-pi-build_tag:
+          build_tag: ''
+      - functest-kubernetes-pi-DEPLOY_SCENARIO:
+          DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
+    builders:
+      - functest-kubernetes-pi-run-containers:
+          <<: *functest-kubernetes-pi-run-containers
+          test: '{test}'
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking'
-    <<: *functest-kubernetes-pi-params
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-params
+    volumes:
+      - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
+      - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
+    env:
+      - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+    published_ports:
     container: 'functest-kubernetes-benchmarking'
     test:
       - xrally_kubernetes_full
+      - netperf
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-{test}-run'
+
+- job-template:
+    name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-{test}-run'
+    parameters:
+      - functest-kubernetes-pi-node:
+          node: '{node}'
+      - functest-kubernetes-pi-build_tag:
+          build_tag: ''
+      - functest-kubernetes-pi-DEPLOY_SCENARIO:
+          DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
+    builders:
+      - functest-kubernetes-pi-run-containers:
+          <<: *functest-kubernetes-pi-run-containers
+          test: '{test}'
 
 - project:
     name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf'
-    <<: *functest-kubernetes-pi-params
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-params
+    volumes:
+      - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
+      - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
+    env:
+      - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+    published_ports:
     container: 'functest-kubernetes-cnf'
     test:
       - k8s_vims
       - cnf_testsuite
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
-      - 'functest-kubernetes-pi-{repo}-{container}-{tag}-{test}-run'
-
+      - 'functest-kubernetes-pi-ollivier-functest-kubernetes-cnf-{tag}-{test}-run'
 
 - builder:
     name: functest-kubernetes-pi-zip
     builders:
       - shell: |
           set +x
+          volumes=;
+          if [ "{volumes}" != "None" ]; then
+            for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
+              do volumes="-v $i $volumes"; done
+          fi
+          env=;
+          if [ "{env}" != "None" ]; then
+            for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
+              do env="-e $i $env"; done
+          fi
+          published_ports=;
+          if [ "{published_ports}" != "None" ]; then
+            for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \
+              do published_ports="-p $i $published_ports"; done
+          fi
           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/results || true
           if [ "{repo}" = "_" ]; then
             image={container}:{tag}
           else
             image={repo}:{port}/{container}:{tag}
           fi
+          mkdir -p $WORKSPACE/results
+          chown {uid}:{gid} $WORKSPACE/results
           docker run --rm \
+            --privileged={privileged} \
+            --network={network} \
+            $volumes \
+            $env \
+            $published_ports \
             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
             -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
-            -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
+            -v /home/opnfv/functest-kubernetes/.boto:/etc/boto.cfg \
             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
+            -e NODE_NAME=$node \
             -e BUILD_TAG=$BUILD_TAG \
             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-            -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
-            -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
             $image zip_campaign
 
 - job-template:
     name: 'functest-kubernetes-pi-{tag}-zip'
     parameters:
-      - functest-kubernetes-pi-slave:
-          slave: '{slave}'
+      - functest-kubernetes-pi-node:
+          node: '{node}'
       - functest-kubernetes-pi-build_tag:
           build_tag: ''
       - functest-kubernetes-pi-DEPLOY_SCENARIO:
           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
     builders:
       - functest-kubernetes-pi-zip:
-          <<: *functest-kubernetes-pi-containers
+          <<: *functest-kubernetes-pi-run-containers
 
 - project:
-    name: 'functest-kubernetes-pi-{tag}-zip'
-    <<: *functest-kubernetes-pi-params
+    name: 'functest-kubernetes-pi-zip'
+    <<: *functest-kubernetes-pi-ollivier-functest-kubernetes-healthcheck-params
+    volumes:
+      - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
+      - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
+    env:
+      - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+    published_ports:
     container: 'functest-kubernetes-healthcheck'
+    privileged: 'false'
+    network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-kubernetes-pi-{tag}-zip'
 
     triggers:
       - timed: '@weekly'
     parameters:
-      - functest-kubernetes-pi-slave:
-          slave: '{slave}'
+      - functest-kubernetes-pi-node:
+          node: '{node}'
       - functest-kubernetes-pi-build_tag:
           build_tag: ''
       - functest-kubernetes-pi-DEPLOY_SCENARIO:
           DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
+    # PyYAML and yamllint differ here
+    # see https://github.com/yaml/pyyaml/issues/234
+    # yamllint disable rule:indentation
     properties:
       - build-blocker:
-          use-build-blocker: true
-          blocking-level: 'NODE'
           blocking-jobs:
-            - '^functest-kubernetes-pi-{tag}-(daily|docker|review)$'
+          - ^functest-kubernetes-(pi-)*.*-(daily|docker|review)$
+    # yamllint enable rule:indentation
     builders:
       - multijob:
           name: remove former images
           projects:
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
               <<: *functest-kubernetes-pi-jobs
-            - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_io-run'
-              <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
               <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-k8s_conformance_serial-run'
               <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_auth-run'
               <<: *functest-kubernetes-pi-jobs
-            - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_cli-run'
-              <<: *functest-kubernetes-pi-jobs
-            - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_cli_serial-run'
-              <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_cluster_lifecycle-run'
               <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_instrumentation-run'
               <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_network-run'
               <<: *functest-kubernetes-pi-jobs
-            - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_network_serial-run'
-              <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_node-run'
               <<: *functest-kubernetes-pi-jobs
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-smoke-{tag}-sig_scheduling_serial-run'
           projects:
             - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
               <<: *functest-kubernetes-pi-jobs
+            - name: 'functest-kubernetes-pi-ollivier-functest-kubernetes-benchmarking-{tag}-netperf-run'
+              <<: *functest-kubernetes-pi-jobs
       - multijob:
           name: ollivier/functest-kubernetes-cnf:{tag}
           projects:
           projects:
             - name: 'functest-kubernetes-pi-{tag}-zip'
               <<: *functest-kubernetes-pi-jobs
+    publishers:
+      - email-ext:
+          failure: false
+          first-failure: true
+          fixed: true
+          recipients: cedric.ollivier@orange.com
 
 - project:
     name: 'functest-kubernetes-pi-daily'