Add ExtractViaBasepullQueryStep; add pagination & piping to api query

This commit is contained in:
2022-10-26 12:24:35 -05:00
parent 77927fd318
commit 82810c2b66
18 changed files with 689 additions and 54 deletions

View File

@ -9,5 +9,9 @@ CURRENT_VERSION="$(cat $QQQ_DEV_TOOLS_DIR/CURRENT-SNAPSHOT-VERSION)"
MODULE_LIST_FILE=$QQQ_DEV_TOOLS_DIR/MODULE_LIST
for artifact in $(cat $MODULE_LIST_FILE); do
update-dep.sh $artifact ${CURRENT_VERSION}-SNAPSHOT
update-dep.sh $artifact ${CURRENT_VERSION}-SNAPSHOT -q
done
echo
echo git diff pom.xml
git diff pom.xml

View File

@ -9,6 +9,14 @@ CURRENT_VERSION="$(cat $QQQ_DEV_TOOLS_DIR/CURRENT-SNAPSHOT-VERSION)"
MODULE_LIST_FILE=$QQQ_DEV_TOOLS_DIR/MODULE_LIST
for module in $(cat $MODULE_LIST_FILE); do
echo "Updating $module..."
version=$(get-latest-snapshot.sh $module $CURRENT_VERSION)
update-dep.sh $module $version
update-dep.sh $module $version -q
done
echo
echo git diff pom.xml
git diff pom.xml
newVersion=$(grep -A1 qqq-backend-core pom.xml | tail -1 | sed 's/.*<version>//;s/<\/version>.*//;s/-........\......./ snapshot/')
echo "You might want to commit that with:"
echo " git commit -m \"Updated qqq deps to $newVersion\" pom.xml"

View File

@ -8,6 +8,11 @@
dep=$1
version=$2
verbose=1
if [ "$3" == "-q" ]; then
verbose=0;
fi
if [ -z "$dep" -o -z "$version" ]; then
echo "What dependency?"
@ -38,7 +43,12 @@ if [ $lineNo -lt $dependenciesTagLineNo ]; then
exit 0;
fi
echo "Going to update version of $dep at line $lineNo"
if [ "$verbose" == "1" ]; then
echo "Going to update version of $dep at line $lineNo"
fi
gsed -i "${lineNo}s/<version>.*</<version>$version</" pom.xml
git diff pom.xml
if [ "$verbose" == "1" ]; then
git diff pom.xml
fi