Merge "Pharos Dashboard Container Builds"
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 25 Sep 2018 18:19:17 +0000 (18:19 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 25 Sep 2018 18:19:17 +0000 (18:19 +0000)
jjb/container4nfv/container4nfv-arm64.yaml
jjb/functest/functest-alpine.sh
jjb/openci/openci-opnfv-daily-jobs.yaml
jjb/opnfvdocs/docs-rtd.yaml

index 069a5d2..9ebaea9 100644 (file)
@@ -33,7 +33,7 @@
 
     wrappers:
       - timeout:
-          timeout: 210
+          timeout: 300
           fail: true
 
     scm:
@@ -63,6 +63,8 @@
               unstable-threshold: 'Failure'
           - project: functest-compass-arm-virtual-daily-master
             current-parameters: false
+            predefined-parameters:
+              DEPLOY_SCENARIO={scenario}
             same-node: true
             block: true
             block-thresholds:
index 4e23d44..c821474 100755 (executable)
@@ -26,14 +26,10 @@ check_os_deployment() {
 
 }
 
-
 run_tiers() {
     tiers=$1
     cmd_opt="run_tests -r -t all"
     [[ $BUILD_TAG =~ "suite" ]] && cmd_opt="run_tests -t all"
-    ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
-    echo 0 > ${ret_val_file}
-
     for tier in ${tiers[@]}; do
         FUNCTEST_IMAGE=${REPO}/functest-${tier}:${DOCKER_TAG}
         echo "Functest: Pulling Functest Docker image ${FUNCTEST_IMAGE} ..."
@@ -55,8 +51,6 @@ run_tiers() {
 run_test() {
     test_name=$1
     cmd_opt="run_tests -t ${test_name}"
-    ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
-    echo 0 > ${ret_val_file}
     # Determine which Functest image should be used for the test case
     case ${test_name} in
         connection_check|tenantnetwork1|tenantnetwork2|vmready1|vmready2|singlevm1|singlevm2|vping_ssh|vping_userdata|cinder_test|odl|api_check|snaps_health_check)
@@ -158,6 +152,9 @@ fi
 
 volumes="${images_vol} ${results_vol} ${sshkey_vol} ${userconfig_vol} ${rc_file_vol} ${cacert_file_vol}"
 
+ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
+echo 0 > ${ret_val_file}
+
 set +e
 
 if [ ${FUNCTEST_MODE} == 'testcase' ]; then
index ad2bce0..afa8eff 100644 (file)
@@ -44,7 +44,9 @@
           name: SCENARIO_METADATA_LOCATION
           default: https://url/to/scenario/metadata/on/opnfv/artifact/repo/$BUILD_NUMBER
           description: 'The location of the scenario metadata'
-      - 'ericsson-build4-defaults'
+      - label:
+          name: SLAVE_LABEL
+          default: 'xci-virtual'
 
     wrappers:
       - credentials-binding:
           name: CONFIDENCE_LEVEL
           default: "'opnfvdaily': 'SUCCESS'"
           description: 'The confidence level the published artifact gained'
-      - 'ericsson-build4-defaults'
+      - label:
+          name: SLAVE_LABEL
+          default: 'xci-virtual'
 
     wrappers:
       - credentials-binding:
index fc99bd3..bfb9d63 100644 (file)
           if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
               cd docs/submodules/$GERRIT_PROJECT
               git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
+              cd -
           else
               git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
           fi
+          if [ -d docs/subdmodules ]; then
+              for project in docs/submodules/*; do
+                  cd $project && git submodule deinit -f . && cd -
+              done
+          fi
       - shell: |
           sudo -H pip install virtualenv
           virtualenv $WORKSPACE/venv