Commit 62360c44 authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Implemeneted cleanup.

parent d3119c58
#!/usr/bin/env bash
CUSTOM_ENV_PATH="$CUSTOM_ENV_CI_RUNNER_ID-$CUSTOM_ENV_CI_PROJECT_ID-$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID-$CUSTOM_ENV_CI_JOB_ID"
#!/usr/bin/env bash
set -e
source "/home/pape58/gitlab-runner-custom/base.sh"
rm -r "/home/pape58/runner-wd/builds/$CUSTOM_ENV_PATH"
#!/usr/bin/env bash
CUSTOM_ENV_PATH="$CUSTOM_ENV_CI_RUNNER_ID-$CUSTOM_ENV_CI_PROJECT_ID-$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID-$CUSTOM_ENV_CI_JOB_ID"
source "/home/pape58/gitlab-runner-custom/base.sh"
1>&2 echo "Config is beeing executed. Custom env path: $CUSTOM_ENV_PATH"
cat << EOS
{
"builds_dir": "/home/pape58/runner-wd/builds/$CUSTOM_ENV_PATH",
"cache_dir": "/home/pape58/runner-wd/cache/$CUSTOM_ENV_PATH",
"builds_dir_is_shared": true
"cache_dir": "/home/pape58/runner-wd/cache/$CUSTOM_ENV_PATH"
}
EOS
......@@ -114,5 +114,3 @@ else
"$script"
fi
exit 0
......@@ -32,4 +32,3 @@ else
"$script"
fi
exit 0
concurrent = 10
concurrent = 4
check_interval = 0
[session_server]
......@@ -11,10 +11,11 @@ check_interval = 0
executor = "custom"
builds_dir = "/home/pape58/runner-wd/builds"
cache_dir = "/home/pape58/runner-wd/cache"
builds_dir_is_shared = "true"
builds_dir_is_shared = true
shell = "bash"
[runners.custom]
config_exec = "config.sh"
run_exec = "run.sh"
config_exec = "/home/pape58/gitlab-runner-custom/config.sh"
run_exec = "/home/pape58/gitlab-runner-custom/run.sh"
cleanup_exec = "/home/pape58/gitlab-runner-custom/cleanup.sh"
graceful_kill_timeout = 200
force_kill_timeout = 200
#!/usr/bin/env bash
RUNNER_CONFIG_DIR="/home/$USER/.gitlab-runner"
LOCAL_BIN_DIR="/home/$USER/.local/bin"
REPO_DIR="$(pwd)"
which "gitlab-runner" > /dev/null
......@@ -10,9 +9,3 @@ mkdir -p "$RUNNER_CONFIG_DIR"
cd "$RUNNER_CONFIG_DIR"
ln -s "$REPO_DIR/runner-config.toml" "config.toml"
mkdir -p "$LOCAL_BIN_DIR"
cd "$LOCAL_BIN_DIR"
ln -s "$REPO_DIR/run.sh" "run.sh"
ln -s "$REPO_DIR/config.sh" "config.sh"
exit 0
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