From b7871b1916fc8941c39950a9fb05308432a3a065 Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Thu, 26 Sep 2019 17:06:52 +0800 Subject: [PATCH] use `bash` to parse shell Test runs failed because of no `source` command can be found. See: https://build.opnfv.org/ci/job/doctor-verify-fault_management-fuel-sample-x86_64-master/45/console Change-Id: I05cdcaec6e0a7289f92ad49e7abd35c3c848a877 Signed-off-by: dongwenjuan --- jjb/doctor/doctor.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jjb/doctor/doctor.yaml b/jjb/doctor/doctor.yaml index ccdf66193..c66624c14 100644 --- a/jjb/doctor/doctor.yaml +++ b/jjb/doctor/doctor.yaml @@ -227,12 +227,14 @@ - ./doctor-env-presetup.sh - ../../utils/fetch_os_creds.sh - shell: | + #!/bin/bash + # prepare the env for test - source $HOME/opnfv-openrc.sh + . $HOME/opnfv-openrc.sh if [ -f $HOME/os_cacert ]; then export OS_CACERT=$HOME/os_cacert fi - source $HOME/opnfv-installer.sh + . $HOME/opnfv-installer.sh # run tox to trigger the test # As Jenkins user, it has no permission to send ICMP package -- 2.16.6