From 4347500aabfa35bfc8fe5427f73463e9026b4c27 Mon Sep 17 00:00:00 2001 From: Jerjou Date: Mon, 6 Mar 2017 15:05:35 -0800 Subject: [PATCH] Shorten version name to avoid 63-char limit. (#549) --- jenkins.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins.sh b/jenkins.sh index aed99618c40..ed5c978bbb0 100755 --- a/jenkins.sh +++ b/jenkins.sh @@ -42,7 +42,9 @@ shellcheck ./**/*.sh # Find all jenkins.sh's and run them. find . -mindepth 2 -maxdepth 5 -name jenkins.sh -type f | while read -r path; do dir="${path%/jenkins.sh}" - app_version="jenkins-${dir//[^a-z]/}" + # Use just the first letter of each subdir in version name + # shellcheck disable=SC2001 + app_version="jenkins-$(echo "${dir#./}" | sed 's#\([a-z]\)[^/]*/#\1-#g')" ( pushd "${dir}" # Need different app versions because flex can't deploy over an existing