diff --git a/runner/cf-driver/run.sh b/runner/cf-driver/run.sh index d5fb925..1b5e454 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 "\n=========\n[cf-driver] RUNNER_DEBUG: End command display\n" 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"