Skip to content

Commit

Permalink
ci: allow passing modified modules from command line (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo authored Oct 13, 2020
1 parent f027549 commit 0c6a4bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/prepareDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ done
[ "$versionBase" = 14.4 -o "$versionBase" = 17.0 ] && lastTag=`git tag | grep "^$versionBase" | head -1`
if [ -n "$lastTag" ]
then
modules=`git diff --name-only $lastTag HEAD | grep '.java$' | cut -d "/" -f1 | grep parent | sort -u | perl -pe 's,-flow-parent,,g'`
shift
## allow setting modules to build from command line or via env var
[ -n "$modified" ] || modified=$*
## otherwise utilise git history to figure out modified modules
[ -n "$modified" ] || modified=`git diff --name-only $lastTag HEAD | grep '.java$' | cut -d "/" -f1 | grep parent | sort -u | perl -pe 's,-flow-parent,,g'`

[ -n "$modified" ] && modules="$modified"
echo "Increasing version of the modified modules since last release $lastTag"
for i in $modules
do
Expand Down

0 comments on commit 0c6a4bf

Please sign in to comment.