The "source" command is only supported by a limited number of shells.
It is normally equivalent to the POSIX "." (pronounced "dot") command.
Contrary to sourced files, dotted files in bash does not allow any
extra argument since it is normally not supported in POSIX.
If no argument is specified, "source" and "." are strictly equivalent.
And sourced files can be straightforward migrated to the dot syntax.
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Id902674c3eef31ce9633c2fc4fc2678da428f832
INIT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
"${INIT_DIR}/system_type.sh"
# shellcheck disable=SC1091
-source /tmp/system_type.sh
+. /tmp/system_type.sh
"${INIT_DIR}/${SYSTEM_TYPE}.sh"
#!/bin/bash -l
set -xe -o pipefail
python3 -m venv $WORKSPACE/venv
- source $WORKSPACE/venv/bin/activate
+ . $WORKSPACE/venv/bin/activate
PYTHON="$WORKSPACE/venv/bin/python"
$PYTHON -m pip install --upgrade networkx
$PYTHON -m pip freeze
set -eu -o pipefail
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
lf-activate-venv "git-review==1.28"
set -x
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
lf-activate-venv "git-review==1.28"
set -eu -o pipefail
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
lf-activate-venv "git-review==1.28"
set +u # Allow unbound variables for virtualenv
virtualenv --quiet "/tmp/v/git-review"
# shellcheck source=/tmp/v/git-review/bin/activate disable=SC1091
-source "/tmp/v/git-review/bin/activate"
+. "/tmp/v/git-review/bin/activate"
pip install --quiet --upgrade "pip==9.0.3" setuptools
pip install --quiet --upgrade git-review
git config --global --add gitreview.username "jenkins-$SILO"
done
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
lf-activate-venv "git-review==1.28"
for line in $( grep -E -v '(^[[:space:]]*#|^[[:space:]]*$)' "${type}plan.txt" ); do
printf "Executing %s...\\n" "${line}"
# shellcheck source=${line} disable=SC1091
- source "${line}"
+ . "${line}"
done
fi
printf "Finished running %s plans\\n" "${type}"
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
source /tmp/common-functions.sh "${BUNDLEFOLDER}"
# Ensure we fail the job if any steps fail.
set -ex -o pipefail
USER=heat-admin
openstack object save OPNFV-APEX-SNAPSHOTS overcloudrc
-source overcloudrc
+. overcloudrc
cat overcloudrc
openstack hypervisor list
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# shellcheck disable=SC1090,SC1091
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
source /tmp/common-functions.sh "${BUNDLEFOLDER}"
echo "#################################################"
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
source /tmp/common-functions.sh "${BUNDLEFOLDER}"
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
source /tmp/common-functions.sh "${BUNDLEFOLDER}"
# Ensure we fail the job if any steps fail.
set -ex -o pipefail
unset OS_CLOUD
EOF
-source /tmp/os_netvirt_client_rc
+. /tmp/os_netvirt_client_rc
echo "Get all versions before executing robot"
echo "openstack --version"
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
source /tmp/common-functions.sh "${BUNDLEFOLDER}"
echo "#################################################"
echo "## invoke Tests for non-karaf Controllers ##"
# ${ROBOT_VENV} comes from the integration-install-robotframework.sh
# script.
# shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
source /tmp/common-functions.sh "${BUNDLEFOLDER}"
# Ensure we fail the job if any steps fail.
set -ex -o pipefail
popd
-# todo: remove below lines once the scripts in zrpcd repos build the
-# source packages.
+# todo: remove below lines once the scripts in zrpcd repos build the src packages.
# Ref: https://lists.opendaylight.org/pipermail/integration-dev/2018-July/012330.html
tar cvzf "$WORKSPACE/upload_files/zrpcd.$(date +%F).tar.gz" "$(pwd)/zrpcd"
mkdir -p ".chartstorage"
chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" &> /dev/null &
-source helm.prop
+. helm.prop
$HELM_BIN plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git || true
$HELM_BIN repo add local http://localhost:6464
$HELM_BIN repo add opendaylight http://localhost:6464
helm_build_script: |
#!/bin/bash
set -x
- source helm.prop
+ . helm.prop
set -e -o pipefail
cd helm/opendaylight
helm3.7 version
set -eux -o pipefail
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
os_cloud="${OS_CLOUD:-vex}"
cluster_name="${CLUSTER_NAME}"
set -eux -o pipefail
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
OS_TIMEOUT=5 # Wait time in minutes for OpenStack cluster nodes to come up.
CLUSTER_NODE_RETRIES=15 # Number of times to retry waiting for a cluster nodes.
set -eux -o pipefail
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
lf-activate-venv python-openstackclient python-magnumclient
OS_TIMEOUT=20 # Wait time in minutes for OpenStack cluster to come up.
set -x
# shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
K8S_DEPLOY_LOG="$WORKSPACE/archives/k8s-kubectl-file.log"
mkdir -p "$WORKSPACE/archives"