doctor: workaround for bug of set-functest-env.sh 29/37629/2
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 17 Jul 2017 13:01:48 +0000 (13:01 +0000)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 17 Jul 2017 14:06:26 +0000 (14:06 +0000)
`set-functest-env.sh' is expected to run with functest jobs,
so it need one of the files in functest repo placed under
WORKSPACE.

This patch avoiding this bug by getting functest repo in pre
section of functest trigger.

Change-Id: Ib266781005bab18f34fa0cdfe50e0facb95d27ef
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
jjb/doctor/doctor.yml

index c5454c7..5bb8f74 100644 (file)
             #       so this symbolic link should not be in 'tests/'. Otherwise,
             #       we'll have the same log twice in jenkins console log.
             ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
+            # NOTE: Get functest script in $WORKSPACE. This functest script is
+            #       needed to perform VM image download in set-functest-env.sh
+            #       from E release cycle.
+            mkdir -p functest/ci
+            wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
         - 'functest-suite-builder'
         - shell: |
             functest_log="$HOME/opnfv/functest/results/{stream}/{project}.log"