diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-07-06 14:49:07 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-07-06 14:49:07 +0900 |
commit | 9c9bb49b0fd3dfa4d25f2958185809f8bfae6f3d (patch) | |
tree | f6af0a25eb8c15b68bbecfa1fe59261d226b4de7 /scripts | |
parent | 254134fbb5557caa95c93876a4131c1c5afaf91f (diff) | |
parent | 969b7c565c6fe5cdfc54830d1da35f254ddaf530 (diff) | |
download | gitlab-ce-9c9bb49b0fd3dfa4d25f2958185809f8bfae6f3d.tar.gz |
Merge branch 'master' into fix-trace-archive-cron-worker-race-condition
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/trigger-build-docs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/scripts/trigger-build-docs b/scripts/trigger-build-docs index 2a0e7f4d76e..9ee35684509 100755 --- a/scripts/trigger-build-docs +++ b/scripts/trigger-build-docs @@ -16,18 +16,14 @@ end GITLAB_DOCS_REPO = 'gitlab-com/gitlab-docs'.freeze # -# Truncate the remote docs branch name if it's more than 63 characters -# otherwise we hit the filesystem limit and the directory name where -# NGINX serves the site won't match the branch name. +# Truncate the remote docs branch name otherwise we hit the filesystem +# limit and the directory name where NGINX serves the site won't match +# the branch name. # def docs_branch # The maximum string length a file can have on a filesystem (ext4) - # is 63 characters. Let's use something smaller to be 100% sure. - max = 42 - # Prefix the remote branch with the slug of the project in order - # to avoid name conflicts in the rare case the branch name already - # exists in the docs repo and truncate to max length. - "#{slug}-#{ENV["CI_ENVIRONMENT_SLUG"]}"[0...max] + # is 63 characters. CI_ENVIRONMENT_SLUG is limited to 24 characters. + ENV["CI_ENVIRONMENT_SLUG"] end # |