Create Process/Tool to Validate Upload Of Release Artifacts To Artifactory#722
Create Process/Tool to Validate Upload Of Release Artifacts To Artifactory#722Ndacyayisenga-droid wants to merge 2 commits intoadoptium:masterfrom
Conversation
| DEBDISTS=("bookworm" "bullseye" "buster" "kinetic" "jammy" "focal" "bionic") | ||
| RPMDISTS=("centos/7" "rocky/8" "rhel/7" "opensuse/15.3") | ||
|
|
||
| if [ $# -eq 0 ]; then |
There was a problem hiding this comment.
Such a script should have a documentation that is printed to the Command-line. The documentation should contain the functionality of the script and possible parameters with documentation.
Example
usage="$(basename "$0") [-h] [-s n] -- program to calculate the answer to life, the universe and everything
where:
-h show this help text
-s set the seed value (default: 42)"
seed=42
while getopts ':hs:' option; do
case "$option" in
h) echo "$usage"
exit
;;
s) seed=$OPTARG
;;
:) printf "missing argument for -%s\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
\?) printf "illegal option: -%s\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
esac
done
shift $((OPTIND - 1))
Copied from https://stackoverflow.com/questions/5474732/how-can-i-add-a-help-method-to-a-shell-script
There was a problem hiding this comment.
Such a script should have a documentation that is printed to the Command-line. The documentation should contain the functionality of the script and possible parameters with documentation.
Example
usage="$(basename "$0") [-h] [-s n] -- program to calculate the answer to life, the universe and everything where: -h show this help text -s set the seed value (default: 42)" seed=42 while getopts ':hs:' option; do case "$option" in h) echo "$usage" exit ;; s) seed=$OPTARG ;; :) printf "missing argument for -%s\n" "$OPTARG" >&2 echo "$usage" >&2 exit 1 ;; \?) printf "illegal option: -%s\n" "$OPTARG" >&2 echo "$usage" >&2 exit 1 ;; esac done shift $((OPTIND - 1))Copied from https://stackoverflow.com/questions/5474732/how-can-i-add-a-help-method-to-a-shell-script
Thannks for the pointer @hendrikebbers. Actually there is still more work to this script. I think we can consider this as well
cc @steelhead31