blob: bdcf02f3e3e67da4574864bbbf7a1ed64a5598cd [file] [log] [blame]
Thomas Vachuska22a662b2018-07-24 11:25:19 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Publishes ONOS artifacts to a Maven repository (local or remote)
4# -----------------------------------------------------------------------------
5
Thomas Vachuskad82635b2018-08-20 11:35:11 -07006options=""
7while 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
12done
13let OPC=$OPTIND-1
14shift $OPC
15
Thomas Vachuska22a662b2018-07-24 11:25:19 -070016REPO_URL=$1
17CATALOG=/tmp/onos.$$.catalog
18
Thomas Vachuskad82635b2018-08-20 11:35:11 -070019onos-publish-catalog $options $CATALOG && onos-upload-artifacts.py $CATALOG $REPO_URL