Commit ceac531b authored by Emeric Verschuur's avatar Emeric Verschuur

[FIX] docker run exit code on error

parent d11dc868
...@@ -940,7 +940,8 @@ case "$CITBX_JOB_EXECUTOR" in ...@@ -940,7 +940,8 @@ case "$CITBX_JOB_EXECUTOR" in
-e CI=true -e GITLAB_CI=true -v /var/run/docker.sock:/var/run/docker.sock \ -e CI=true -e GITLAB_CI=true -v /var/run/docker.sock:/var/run/docker.sock \
"${CITBX_DOCKER_RUN_ARGS[@]}" --label "$CITBX_DOCKER_PREFIX" "${CITBX_JOB_DOCKER_RUN_ARGS[@]}" \ "${CITBX_DOCKER_RUN_ARGS[@]}" --label "$CITBX_DOCKER_PREFIX" "${CITBX_JOB_DOCKER_RUN_ARGS[@]}" \
-e DOCKER_RUN_EXTRA_ARGS="$(bashopts_get_def bashopts_extra_args)" "${bashopts_extra_args[@]}" \ -e DOCKER_RUN_EXTRA_ARGS="$(bashopts_get_def bashopts_extra_args)" "${bashopts_extra_args[@]}" \
$CITBX_DOCKER_IMAGE "${CITBX_PRE_COMMANDS[@]}" $CITBX_JOB_SHELL -c "$CITBX_COMMANDS" $CITBX_DOCKER_IMAGE "${CITBX_PRE_COMMANDS[@]}" $CITBX_JOB_SHELL -c "$CITBX_COMMANDS" \
|| exit $?
;; ;;
*) *)
print_critical "Invalid or unsupported '$CITBX_JOB_EXECUTOR' executor" print_critical "Invalid or unsupported '$CITBX_JOB_EXECUTOR' executor"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment