summaryrefslogtreecommitdiffstats
path: root/integration/src/main/scripts/release/releasePhase.sh
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2022-09-27 13:45:55 +0100
committerliamfallon <liam.fallon@est.tech>2022-09-27 13:51:45 +0100
commitd31592eebbfbaca118c44f45af0cb3e935b90623 (patch)
tree1380c123a631a7920270b73ee0814a744280f9ae /integration/src/main/scripts/release/releasePhase.sh
parent3865fa45dc376403ad80a925a2cf9730c90eb0ec (diff)
Update release scripts: OOM and tagging
Add support for tagging release data Fix OOM script to cope with quoted repo names in the pf_release_data.csv file Issue-ID: POLICY-4045 Change-Id: Idb0c8895d1a8e6e7c564e0c5f86f7917f9278852 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'integration/src/main/scripts/release/releasePhase.sh')
-rwxr-xr-xintegration/src/main/scripts/release/releasePhase.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/integration/src/main/scripts/release/releasePhase.sh b/integration/src/main/scripts/release/releasePhase.sh
index 81a457e0..789e7f18 100755
--- a/integration/src/main/scripts/release/releasePhase.sh
+++ b/integration/src/main/scripts/release/releasePhase.sh
@@ -24,7 +24,8 @@ set -e
SCRIPT_NAME=$(basename "$0")
repo_location="./"
-release_data_file="./pf_release_data.csv"
+release_data_file="pf_release_data.csv"
+release_data_file_tag=""
usage()
{
@@ -40,6 +41,7 @@ usage()
echo " defaults to '$repo_location'"
echo " -i issue-id - issue ID in the format POLICY-nnnn"
echo " -p phase - the release phase, a positive integer"
+ echo " -t tag - tag the release data file with the given tag"
echo ""
echo " examples:"
echo " $SCRIPT_NAME -l /home/user/onap -d /home/user/data/pf_release_data.csv -i POLICY-1234 -p 3"
@@ -48,7 +50,7 @@ usage()
exit 255;
}
-while getopts "hd:l:i:p:" opt
+while getopts "hd:l:i:p:t:" opt
do
case $opt in
h)
@@ -66,6 +68,9 @@ do
p)
release_phase=$OPTARG
;;
+ t)
+ release_data_file_tag="$OPTARG"
+ ;;
\?)
usage
exit 1
@@ -389,7 +394,8 @@ release_phase_15() {
-f \
-d "$release_data_file" \
-l "$repo_location" \
- -r "policy/parent"
+ -r "policy/parent" \
+ -t "$release_data_file_tag"
generateCommit.sh \
-l "$repo_location" \
-r "policy/parent" \