Thomas Vachuska | 22a662b | 2018-07-24 11:25:19 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Publishes ONOS artifacts to a Maven repository (local or remote) |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
Thomas Vachuska | d82635b | 2018-08-20 11:35:11 -0700 | [diff] [blame] | 6 | options="" |
| 7 | while getopts lh? o; do |
| 8 | case "$o" in |
| 9 | l) options="$options -l";; |
| 10 | *) echo "usage: $(basename $0) [-l] [repoURL]" >&2; exit 1;; |
| 11 | esac |
| 12 | done |
| 13 | let OPC=$OPTIND-1 |
| 14 | shift $OPC |
| 15 | |
Thomas Vachuska | 22a662b | 2018-07-24 11:25:19 -0700 | [diff] [blame] | 16 | REPO_URL=$1 |
| 17 | CATALOG=/tmp/onos.$$.catalog |
| 18 | |
Thomas Vachuska | d82635b | 2018-08-20 11:35:11 -0700 | [diff] [blame] | 19 | onos-publish-catalog $options $CATALOG && onos-upload-artifacts.py $CATALOG $REPO_URL |