tom

Added onos-push-update-bundle (yes 'pub')

...@@ -33,6 +33,7 @@ alias obs='onos-build-selective' ...@@ -33,6 +33,7 @@ alias obs='onos-build-selective'
33 alias op='onos-package' 33 alias op='onos-package'
34 alias ot='onos-test' 34 alias ot='onos-test'
35 alias ol='onos-log' 35 alias ol='onos-log'
36 +alias pub='onos-push-update-bundle'
36 37
37 # Short-hand for tailing the ONOS (karaf) log 38 # Short-hand for tailing the ONOS (karaf) log
38 alias tl='$ONOS_ROOT/tools/dev/bin/onos-local-log' 39 alias tl='$ONOS_ROOT/tools/dev/bin/onos-local-log'
......
...@@ -15,6 +15,7 @@ bundle=$(echo $(basename $jar .jar) | sed 's/-[0-9].*//g') ...@@ -15,6 +15,7 @@ bundle=$(echo $(basename $jar .jar) | sed 's/-[0-9].*//g')
15 15
16 nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) 16 nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
17 for node in $nodes; do 17 for node in $nodes; do
18 - scp $jar $ONOS_USER@$node:$ONOS_INSTALL_DIR/$KARAF_DIST/system/$jar 18 + scp -q $jar $ONOS_USER@$node:$ONOS_INSTALL_DIR/$KARAF_DIST/system/$jar
19 - ssh $ONOS_USER@$node $ONOS_INSTALL_DIR/bin/onos update $bundle 19 + ssh $ONOS_USER@$node "ls -l $ONOS_INSTALL_DIR/$KARAF_DIST/system/$jar"
20 + ssh $ONOS_USER@$node "$ONOS_INSTALL_DIR/bin/onos \"bundle:update -f $bundle\"" 2>/dev/null
20 done 21 done
......