diff --git a/runner/cf-driver/run.sh b/runner/cf-driver/run.sh index 6524742..c2ec898 100755 --- a/runner/cf-driver/run.sh +++ b/runner/cf-driver/run.sh @@ -15,7 +15,7 @@ if [ -n "${RUNNER_DEBUG-}" ] && [ "$RUNNER_DEBUG" == "true" ]; then printf "=========[cf-driver] RUNNER_DEBUG: End command display" fi -if ! cf ssh "$CONTAINER_ID" < "${1}"; then +if ! cf ssh "$CONTAINER_ID" -c "source /etc/profile" < "${1}"; then # Exit using the variable, to make the build as failure in GitLab # CI. exit "$BUILD_FAILURE_EXIT_CODE"