Update Functest jjb for Yoga
[releng.git] / jjb / functest / functest-pi.yaml
index ffca9ac..47a1efa 100644 (file)
     port:
     tag:
       - latest:
-          slave: lf-pod4-2
-          DASHBOARD_URL: http://172.30.12.85
+          slave: lf-pod4
+          DASHBOARD_URL: http://172.30.12.83
+      - yoga:
+          slave: lf-pod4-3
+          DASHBOARD_URL: http://172.30.12.88
+      - xena:
+          slave: laas-xena
+          DASHBOARD_URL: http://10.200.120.76
       - wallaby:
           slave: lf-virtual6
           DASHBOARD_URL: http://172.30.13.91
       - leguer:
           slave: lf-virtual9
           DASHBOARD_URL: http://172.30.13.94
-      - kali:
-          slave: lf-pod4-3
-          DASHBOARD_URL: http://172.30.12.88
-      - jerma:
+      - arm-latest:
           slave: lf-pod4
           DASHBOARD_URL: http://172.30.12.83
-      - arm-latest:
-          slave: lf-pod4-2
-          DASHBOARD_URL: http://172.30.12.85
+      - arm-yoga:
+          slave: lf-pod4-3
+          DASHBOARD_URL: http://172.30.12.88
+      - xena-latest:
+          slave: laas-xena
+          DASHBOARD_URL: http://10.200.120.76
       - arm-wallaby:
           slave: lf-virtual6
           DASHBOARD_URL: http://172.30.13.91
       - arm-leguer:
           slave: lf-virtual9
           DASHBOARD_URL: http://172.30.13.94
-      - arm-kali:
-          slave: lf-pod4-3
-          DASHBOARD_URL: http://172.30.12.88
-      - arm-jerma:
+      - arm64-latest:
           slave: lf-pod4
           DASHBOARD_URL: http://172.30.12.83
-      - arm64-latest:
-          slave: lf-pod4-2
-          DASHBOARD_URL: http://172.30.12.85
+      - arm64-yoga:
+          slave: lf-pod4-3
+          DASHBOARD_URL: http://172.30.12.88
+      - arm64-xena:
+          slave: laas-xena
+          DASHBOARD_URL: http://10.200.120.76
       - arm64-wallaby:
           slave: lf-virtual6
           DASHBOARD_URL: http://172.30.13.91
       - arm64-leguer:
           slave: lf-virtual9
           DASHBOARD_URL: http://172.30.13.94
-      - arm64-kali:
-          slave: lf-pod4-3
-          DASHBOARD_URL: http://172.30.12.88
-      - arm64-jerma:
-          slave: lf-pod4
-          DASHBOARD_URL: http://172.30.12.83
 
 - functest-pi-jobs: &functest-pi-jobs
     name: 'functest-pi-jobs'
     volumes: '{volumes}'
     env: '{env}'
     network: '{network}'
+    uid: '{uid}'
+    gid: '{gid}'
+    published_ports: '{published_ports}'
     DASHBOARD_URL: '{DASHBOARD_URL}'
 
 - builder:
             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" ] && sudo rm -rf $WORKSPACE/results || true
           if [ "{repo}" = "_" ]; then
             image={container}:{tag}
           else
             image={repo}:{port}/{container}:{tag}
           fi
+          sudo mkdir -p $WORKSPACE/results
+          sudo chown {uid}:{gid} $WORKSPACE/results
           sudo 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/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
-            -v /home/opnfv/functest/.boto:/root/.boto \
+            -v /home/opnfv/functest/.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 \
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-healthcheck'
     test:
       - connection_check
       - tempest_horizon
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-pi-ollivier-functest-healthcheck-{tag}-{test}-run'
 
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-smoke'
     test:
       - tempest_neutron
       - tempest_cyborg
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     exclude:
       - tag: latest
         test: refstack_defcore
         test: networking-sfc
       - tag: latest
         test: patrole
+      - tag: xena
+        test: refstack_defcore
+      - tag: xena
+        test: networking-bgpvpn
+      - tag: xena
+        test: networking-sfc
+      - tag: xena
+        test: patrole
       - tag: wallaby
         test: refstack_defcore
       - tag: wallaby
         test: networking-sfc
       - tag: arm-latest
         test: patrole
+      - tag: arm-xena
+        test: refstack_defcore
+      - tag: arm-xena
+        test: networking-bgpvpn
+      - tag: arm-xena
+        test: networking-sfc
+      - tag: arm-xena
+        test: patrole
       - tag: arm-wallaby
         test: refstack_defcore
       - tag: arm-wallaby
         test: networking-sfc
       - tag: arm64-latest
         test: patrole
+      - tag: arm64-xena
+        test: refstack_defcore
+      - tag: arm64-xena
+        test: networking-bgpvpn
+      - tag: arm64-xena
+        test: networking-sfc
+      - tag: arm64-xena
+        test: patrole
       - tag: arm64-wallaby
         test: refstack_defcore
       - tag: arm64-wallaby
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-smoke-cntt'
     test:
       - tempest_neutron_cntt
       - tempest_slow_cntt
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-pi-ollivier-functest-smoke-cntt-{tag}-{test}-run'
 
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-benchmarking'
     test:
       - rally_full
       - shaker
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-pi-ollivier-functest-benchmarking-{tag}-{test}-run'
 
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-benchmarking-cntt'
     test:
       - rally_full_cntt
       - rally_jobs_cntt
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-pi-ollivier-functest-benchmarking-cntt-{tag}-{test}-run'
 
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-vnf'
     test:
       - cloudify
       - juju_epc
     privileged: 'false'
     network: bridge
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-pi-ollivier-functest-vnf-{tag}-{test}-run'
 
             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" ] && sudo rm -rf $WORKSPACE/results || true
           if [ "{repo}" = "_" ]; then
             image={container}:{tag}
           else
             image={repo}:{port}/{container}:{tag}
           fi
+          sudo mkdir -p $WORKSPACE/results
+          sudo chown {uid}:{gid} $WORKSPACE/results
           sudo docker run --rm \
             $volumes \
             $env \
+            $published_ports \
             -e S3_ENDPOINT_URL=https://storage.googleapis.com \
             -e S3_DST_URL=s3://artifacts.opnfv.org/functest \
             -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \
-            -v /home/opnfv/functest/.boto:/root/.boto \
+            -v /home/opnfv/functest/.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 BUILD_TAG=$BUILD_TAG \
           <<: *functest-pi-containers
           volumes: '{volumes}'
           env: '{env}'
+          uid: '{uid}'
+          gid: '{gid}'
+          published_ports: '{published_ports}'
 
 - project:
     name: 'functest-pi-{tag}-zip'
       - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
       - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
       - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
+    published_ports:
     container: 'functest-healthcheck'
+    uid: 1000
+    gid: 1000
     jobs:
       - 'functest-pi-{tag}-zip'
 
           projects:
             - name: 'functest-pi-{tag}-zip'
               <<: *functest-pi-jobs
+    publishers:
+      - email-ext:
+          failure: false
+          first-failure: true
+          fixed: true
+          recipients: cedric.ollivier@orange.com
 
 - project:
     name: 'functest-pi-daily'