added: ability to use jenkins build scripts for release test building

we need to be able to specify absolute refs to use for the repos
rather than a pull request number.
This commit is contained in:
Arne Morten Kvarving 2022-04-21 09:50:49 +02:00
parent ecde5ebc8c
commit 9f332b87a4

View File

@ -16,7 +16,12 @@ function parseRevisions {
do do
if grep -qi "$upstream=" <<< $ghprbCommentBody if grep -qi "$upstream=" <<< $ghprbCommentBody
then then
upstreamRev[$upstream]=pull/`echo $ghprbCommentBody | sed -r "s/.*${upstream,,}=([0-9]+).*/\1/g"`/merge if test -n "$absolute_revisions"
then
upstreamRev[$upstream]=`echo $ghprbCommentBody | sed -r "s/.*${upstream,,}=([^ ]+).*/\1/g"`
else
upstreamRev[$upstream]=pull/`echo $ghprbCommentBody | sed -r "s/.*${upstream,,}=([0-9]+).*/\1/g"`/merge
fi
fi fi
done done
if grep -q "with downstreams" <<< $ghprbCommentBody if grep -q "with downstreams" <<< $ghprbCommentBody
@ -25,8 +30,13 @@ function parseRevisions {
do do
if grep -qi "$downstream=" <<< $ghprbCommentBody if grep -qi "$downstream=" <<< $ghprbCommentBody
then then
downstreamRev[$downstream]=pull/`echo $ghprbCommentBody | sed -r "s/.*${downstream,,}=([0-9]+).*/\1/g"`/merge if test -n "$absolute_revisions"
fi then
downstreamRev[$downstream]=`echo $ghprbCommentBody | sed -r "s/.*${downstream,,}=([^ ]+).*/\1/g"`
else
downstreamRev[$downstream]=pull/`echo $ghprbCommentBody | sed -r "s/.*${downstream,,}=([0-9]+).*/\1/g"`/merge
fi
fi
done done
fi fi