summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2015-10-06 14:44:41 +0200
committervalentin boucher <valentin.boucher@orange.com>2015-10-06 12:53:26 +0000
commitce7c448901f386b935a0f03d5f17ca6e541b9a49 (patch)
tree5a3f7cd39b3ad8e5356969c1ec6cf8936c1f1d20
parent8a0ac706543dbaedf4759c3d93effdb1699fefba (diff)
Update vIMS jobs
JIRA: FUNCTEST-38 Change-Id: I6fc3294fe81f4c04bab03f45f8ead845f2c4e345 Signed-off-by: boucherv <valentin.boucher@orange.com>
-rw-r--r--jjb/functest/functest.yml81
1 files changed, 61 insertions, 20 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml
index 78c2ac714..139d102c3 100644
--- a/jjb/functest/functest.yml
+++ b/jjb/functest/functest.yml
@@ -29,7 +29,7 @@
- 'functest-openstack-bench-test-{pod}'
- 'functest-openstack-tempest-smoke-test-{pod}'
- 'functest-odl-test-{pod}'
- - 'functest-vims-test-{installer}-{stream}'
+ - 'functest-vims-{installer}-{stream}'
- 'functest-vping-test-{pod}'
- 'functest-daily-{stream}'
- 'functest-merge-{stream}'
@@ -252,7 +252,7 @@
$WORKSPACE/testcases/Controllers/ODL/CI/start_tests.sh
- job-template:
- name: functest-vims-test-{installer}-{stream}
+ name: functest-vping-test-{pod}
project-type: freestyle
@@ -268,18 +268,37 @@
- shell: |
#!/bin/bash
set +e
- # vIMS
- echo "Functest: run vIMS"
- python $WORKSPACE/testcases/vIMS/CI/vIMS.py --debug $WORKSPACE/
+ # vPing
+ echo "Functest: run vPing"
+ python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/ -r
- job-template:
- name: functest-vping-test-{pod}
+ name: functest-{pod}
project-type: freestyle
node: '{pod}'
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - string:
+ name: INSTALLER_TYPE
+ default: '{installer_type}'
+ description: "Installer name that is used for deployment."
+ - string:
+ name: INSTALLER_IP
+ default: '{installer_ip}'
+ description: "Installer IP."
+ - '{pod}'
+
+ scm:
+ - git-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ branch: master
+
logrotate:
daysToKeep: 30
numToKeep: 10
@@ -287,20 +306,17 @@
artifactNumToKeep: -1
builders:
- - shell: |
- #!/bin/bash
- set +e
-
- # vPing
- echo "Functest: run vPing"
- python $WORKSPACE/testcases/vPing/CI/libraries/vPing.py --debug $WORKSPACE/ -r
+ - 'functest-fetch-os-creds'
+ - 'functest-all'
+ - 'functest-store-results'
+ - 'functest-cleanup'
- job-template:
- name: functest-{pod}
+ name: functest-{installer}-{stream}
project-type: freestyle
- node: '{pod}'
+ node: '{node}'
parameters:
- project-parameter:
@@ -313,7 +329,10 @@
name: INSTALLER_IP
default: '{installer_ip}'
description: "Installer IP."
- - '{pod}'
+ - string:
+ name: GIT_BASE
+ default: ssh://gerrit.opnfv.org:29418/$PROJECT
+ description: "Override GIT_BASE"
scm:
- git-scm:
@@ -334,7 +353,7 @@
- 'functest-cleanup'
- job-template:
- name: functest-{installer}-{stream}
+ name: functest-vims-{installer}-{stream}
project-type: freestyle
@@ -370,9 +389,7 @@
builders:
- 'functest-fetch-os-creds'
- - 'functest-all'
- - 'functest-store-results'
- - 'functest-cleanup'
+ - 'functest-vims'
- job-template:
name: 'functest-daily-{stream}'
@@ -648,6 +665,30 @@
cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
- builder:
+ name: functest-vims
+ builders:
+ - shell: |
+ #!/bin/bash
+ set +e
+
+ # source openstack vars
+ if [ ! -f $HOME/opnfv-openrc.sh ]; then
+ echo "Credentials file not found in "$HOME/opnfv-openrc.sh
+ exit 1
+ fi
+ echo "Sourcing the OpenStack credentials in"$HOME/opnfv-openrc.sh
+ source $HOME/opnfv-openrc.sh
+
+ # WORKSPACE is the root of the functest repo
+ # go into WORKSPACE where the functest repo is cloned
+ cd $WORKSPACE
+
+ # vIMS
+ echo "Functest: run vIMS"
+ python $WORKSPACE/testcases/vIMS/CI/vIMS.py --debug $WORKSPACE/
+
+
+- builder:
name: functest-store-results
builders:
- shell: