Skip to content

Commit

Permalink
Shorten version name to avoid 63-char limit. (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerjou authored and lesv committed Mar 6, 2017
1 parent 2205147 commit 4347500
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4347500

Please sign in to comment.