File tree Expand file tree Collapse file tree 2 files changed +19
-16
lines changed
gitlab_multi_group_runner Expand file tree Collapse file tree 2 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1- __version_info__ = (0 , 1 , 1 )
1+ __version_info__ = (0 , 1 , 2 )
22__version__ = "." .join (map (str , __version_info__ ))
Original file line number Diff line number Diff 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
3942main " $@ "
You can’t perform that action at this time.
0 commit comments