Skip to content

Commit b351b77

Browse files
committed
Merge branch 'develop'
2 parents 1ccd2b7 + c79a8ab commit b351b77

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version_info__ = (0, 1, 1)
1+
__version_info__ = (0, 1, 2)
22
__version__ = ".".join(map(str, __version_info__))

gitlab_runner_driver/run_stage.sh

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ main () {
1919
runner_script="${args[-2]}"
2020
runner_stage="${args[-1]}"
2121

22-
if [[ "${runner_stage}" != "prepare_script" ]]; then
23-
# Simply ignore all run stages except the first one (`prepare_script`)
24-
return 0
25-
fi
26-
27-
# Run the script which was prepared by GitLab itself:
28-
bash "${runner_script}" || return "${BUILD_FAILURE_EXIT_CODE}"
29-
30-
# Afterwards, configure runners
31-
CLICOLOR_FORCE=1 \
32-
TERM=ansi \
33-
"${SCRIPT_DIR}/gitlab-multi-group-runner" \
34-
-f "${SCRIPT_DIR}/../etc/gitlab_multi_group_runnerrc.yml" \
35-
"${gitlab_multi_group_runner_args[@]}" \
36-
"${CUSTOM_ENV_CI_PROJECT_PATH}" || return "${BUILD_FAILURE_EXIT_CODE}"
22+
case "${runner_stage}" in
23+
prepare_script)
24+
# Run the script which was prepared by GitLab itself:
25+
bash "${runner_script}" || return "${BUILD_FAILURE_EXIT_CODE}"
26+
;;
27+
build_script|step_script)
28+
CLICOLOR_FORCE=1 \
29+
TERM=ansi \
30+
"${SCRIPT_DIR}/gitlab-multi-group-runner" \
31+
-f "${SCRIPT_DIR}/../etc/gitlab_multi_group_runnerrc.yml" \
32+
"${gitlab_multi_group_runner_args[@]}" \
33+
"${CUSTOM_ENV_CI_PROJECT_PATH}" || return "${BUILD_FAILURE_EXIT_CODE}"
34+
;;
35+
*)
36+
# Simply ignore all other run stages
37+
return 0
38+
;;
39+
esac
3740
}
3841

3942
main "$@"

0 commit comments

Comments
 (0)