xci: Several bugfixes for the verify job 39/39639/4
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 18 Aug 2017 21:51:30 +0000 (23:51 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Sat, 19 Aug 2017 10:42:46 +0000 (12:42 +0200)
- Fix environment variables set by the job
- Fix the default distro in deploy job since the {distro} is not passed to it
- Navigate to correct directory where xci-deploy.sh is located

Change-Id: Ie412dc4852a4aac5aae5c1f26bb271281ebbc111
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/xci/xci-verify-jobs.yml

index 6bc0642..f281f2b 100644 (file)
         - label:
             name: SLAVE_LABEL
             default: 'xci-virtual-{distro}'
+        - string:
+            name: GIT_BASE
+            default: https://gerrit.opnfv.org/gerrit/$PROJECT
+            description: 'Git URL to use on this Jenkins Slave'
 
     builders:
         - description-setter:
     parameters:
         - string:
             name: DISTRO
-            default: '{distro}'
+            default: 'xenial'
         - string:
             name: DEPLOY_SCENARIO
             default: 'os-nosdn-nofeature-noha'
             name: XCI_FLAVOR
             default: 'mini'
         - string:
-            name: XCI_DEVEL_ROOT
-            default: $WORKSPACE
+            name: OPNFV_RELENG_DEV_PATH
+            default: $WORKSPACE/
         - string:
             name: ANSIBLE_VERBOSITY
             default: '-vvvv'
+        - string:
+            name: GIT_BASE
+            default: https://gerrit.opnfv.org/gerrit/$PROJECT
+            description: 'Git URL to use on this Jenkins Slave'
 
     wrappers:
         - ssh-agent-wrapper
         - shell: |
             #!/bin/bash
 
-            cd $WORKSPACE
+            # for some reason, the PATH is not set correctly
+            # setting PATH for ansible stuff
+            export PATH=/home/jenkins/.local/bin:$PATH
+
+            cd $WORKSPACE/xci
             ./xci-deploy.sh
 
 - builder: