Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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