dovetail: to support multi_testsuite 59/25459/3
authorMatthewLi <matthew.lijun@huawei.com>
Mon, 5 Dec 2016 06:45:16 +0000 (01:45 -0500)
committerMatthewLi <matthew.lijun@huawei.com>
Mon, 5 Dec 2016 07:00:41 +0000 (02:00 -0500)
JIRA: DOVETAIL-150

Change-Id: Iae4aec947c9cbe5fc4535338908d9e4d51f4ce44
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/compass4nfv/compass-ci-jobs.yml
jjb/dovetail/dovetail-ci-jobs.yml
jjb/dovetail/dovetail-run.sh

index b70bfc6..91f1b72 100644 (file)
         #dovetail only master by now, not sync with A/B/C branches
         #here the stream means the SUT stream, dovetail stream is defined in its own job
         - trigger-builds:
-            - project: 'dovetail-compass-{pod}-basic-{stream}'
+            - project: 'dovetail-compass-{pod}-debug-{stream}'
               current-parameters: false
               predefined-parameters:
                 DEPLOY_SCENARIO={scenario}
index 2921200..263e3b2 100644 (file)
             <<: *master
 #--------------------------------
     testsuite:
-        - 'basic'
+        - 'debug'
+        - 'proposed_tests'
+        - 'compliace_set'
 
     jobs:
         - 'dovetail-{SUT}-{pod}-{testsuite}-{stream}'
             name: CI_DEBUG
             default: 'true'
             description: "Show debug output information"
+        - string:
+            name: TESTSUITE
+            default: '{testsuite}'
+            description: "dovetail testsuite to run"
 
     scm:
         - git-scm:
         - description-setter:
             description: "POD: $NODE_NAME"
         - 'dovetail-cleanup'
-        - 'dovetail-{testsuite}'
+        - 'dovetail-run'
 
     publishers:
         - archive:
 # builder macros
 ########################
 - builder:
-    name: dovetail-basic
+    name: dovetail-run
     builders:
         - shell:
             !include-raw: ./dovetail-run.sh
 
+
 - builder:
     name: dovetail-fetch-os-creds
     builders:
index 098b7db..c792b1e 100755 (executable)
@@ -47,8 +47,8 @@ docker pull opnfv/dovetail:$DOCKER_TAG >$redirect
 
 # Run docker
 echo "Dovetail: docker running..."
-sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/dovetail:${DOCKER_TAG} \
-"/home/opnfv/dovetail/dovetail/run.py"
+cmds = "${DOVETAIL_REPO_DIR}/dovetail/run.py --testsuite $TESTSUITE"
+sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/dovetail:${DOCKER_TAG} ${cmds}
 
 echo "Dovetail: store results..."
 sudo cp -r /home/opnfv/dovetail/results ./