Skip to content

Commit 4347500

Browse files
jerjoulesv
authored andcommitted
Shorten version name to avoid 63-char limit. (GoogleCloudPlatform#549)
1 parent 2205147 commit 4347500

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jenkins.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ shellcheck ./**/*.sh
4242
# Find all jenkins.sh's and run them.
4343
find . -mindepth 2 -maxdepth 5 -name jenkins.sh -type f | while read -r path; do
4444
dir="${path%/jenkins.sh}"
45-
app_version="jenkins-${dir//[^a-z]/}"
45+
# Use just the first letter of each subdir in version name
46+
# shellcheck disable=SC2001
47+
app_version="jenkins-$(echo "${dir#./}" | sed 's#\([a-z]\)[^/]*/#\1-#g')"
4648
(
4749
pushd "${dir}"
4850
# Need different app versions because flex can't deploy over an existing

0 commit comments

Comments
 (0)