[Fix] Reduce path names because ncat does not like large names
This commit is contained in:
parent
f518e8037a
commit
9d816b668f
|
@ -216,12 +216,13 @@ main() (
|
|||
fi
|
||||
|
||||
# Generate random string.
|
||||
random="$(echo "${RANDOM}" | md5sum | head --bytes 8)"
|
||||
random="$(echo "${RANDOM}" | md5sum | head --bytes 7)"
|
||||
|
||||
# Build runner request.
|
||||
case "${pipeline}" in
|
||||
newcommit)
|
||||
rd_pipeline_sock_dir="${pipeline_sock_dir}/${pipeline}-${repo_hash}-${random}"
|
||||
repo_id="$(echo "${repo_hash}" | head -c 7)"
|
||||
rd_pipeline_sock_dir="${pipeline_sock_dir}/${pipeline}-${repo_id}-${random}"
|
||||
runner_request="$(jq --null-input --compact-output \
|
||||
--arg s "${rd_pipeline_sock_dir}/pipeline.sock" \
|
||||
--arg n "${repo_name}" \
|
||||
|
|
Loading…
Reference in New Issue