3 # SPDX-License-Identifier: EPL-1.0
4 ##############################################################################
5 # Copyright (c) 2019 The Linux Foundation and others.
7 # All rights reserved. This program and the accompanying materials
8 # are made available under the terms of the Eclipse Public License v1.0
9 # which accompanies this distribution, and is available at
10 # http://www.eclipse.org/legal/epl-v10.html
11 ##############################################################################
13 echo "---> run_releasedockerhub.sh"
14 # Ensure we fail the job if any steps fail
18 # shellcheck disable=SC1090
21 lf-activate-venv zipp==1.1.0 lftools
23 if [ ! -v RELEASEDOCKERHUB_ORG ]
25 echo "RELEASEDOCKERHUB_ORG is not defined. For onap set it to 'onap'"
29 cmd_str="--org $RELEASEDOCKERHUB_ORG"
30 if [ -v RELEASEDOCKERHUB_SUMMARY ]
34 if [ -v RELEASEDOCKERHUB_VERBOSE ]
38 if [ -v RELEASEDOCKERHUB_REPO ]
40 cmd_str+=" --repo $RELEASEDOCKERHUB_REPO"
42 if [ -v RELEASEDOCKERHUB_EXACT ]
48 if [ -v RELEASEDOCKERHUB_COPY ]
53 echo "cmd_str = >>$cmd_str<<"
55 # Run the releasedockerhub command in lftools
56 lftools nexus docker releasedockerhub $cmd_str