Skip to content
Snippets Groups Projects

Adds new preRegistrationScript to run commands before the registration happens

Closed Javion Cai requested to merge javion3/gitlab-runner:javion3-main-patch-94666 into main
4 unresolved threads
1 file
+ 3
8
Compare changes
  • Side-by-side
  • Inline
+ 3
8
@@ -116,15 +116,10 @@ checkInterval: 30
@@ -116,15 +116,10 @@ checkInterval: 30
## A custom bash script that will be executed prior to the runner registration
## A custom bash script that will be executed prior to the runner registration
## gitlab-runner process
## gitlab-runner process
#
#
preRegistrationScript: |
#preRegistrationScript: |
if [ -z "${CI_SERVER_TOKEN+1}" ]
# echo "hello"
then
# https://gitlab.com/gitlab-org/charts/gitlab-runner/-/issues/462
echo "Setting CI_SERVER_TOKEN to empty string"
CI_SERVER_TOKEN=""
fi
 
w
## A custom bash script that will be executed prior to the invocation
## A custom bash script that will be executed prior to the invocation
## gitlab-runner process
## gitlab-runner process
#
#
Loading