summaryrefslogtreecommitdiff
path: root/scripts/trigger-build-docs
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-14 09:07:54 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-14 09:07:54 +0000
commit5ff1b520badaa2da217416964709f49f3ede350a (patch)
tree821ddbc4062a56fd2a7f26a0776457da3e074859 /scripts/trigger-build-docs
parenteccfaf7c242ab8afec22cdaf68865763e780fdeb (diff)
downloadgitlab-ce-5ff1b520badaa2da217416964709f49f3ede350a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/trigger-build-docs')
-rwxr-xr-xscripts/trigger-build-docs10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/trigger-build-docs b/scripts/trigger-build-docs
index 046ee5bceb8..ea717d9ccbf 100755
--- a/scripts/trigger-build-docs
+++ b/scripts/trigger-build-docs
@@ -16,14 +16,12 @@ end
GITLAB_DOCS_REPO = 'gitlab-org/gitlab-docs'.freeze
#
-# 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.
+# This is the branch that will be created in the gitlab-docs project.
+# Name it after the product we're previewing and the ID of the MR that
+# kicked the review app.
#
def docs_branch
- # The maximum string length a file can have on a filesystem (ext4)
- # is 63 characters. CI_ENVIRONMENT_SLUG is limited to 24 characters.
- ENV["CI_ENVIRONMENT_SLUG"]
+ "docs-preview-#{slug}-#{ENV["CI_MERGE_REQUEST_IID"]}"
end
#