Skip to content

Commit

Permalink
add override for rootFolder; remove TODO and fix example JBT IS URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nickboldt committed Dec 12, 2015
1 parent be30734 commit 4278cb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions publish/mergeISdiscovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ usage ()
{
echo "Usage : $0 [-DESTINATION destination] -v version -vr version-with-respin -is integration-stack-discovery-site"
echo ""
# TODO https://issues.jboss.org/browse/JBTIS-498 - should have more consistent URLs here
echo "Example 1: $0 -v 4.3.0.CR1 -vr 4.3.0.CR1a -is http://download.jboss.org/jbosstools/mars/snapshots/builds/integration-stack/discovery/4.3.0.Alpha2/"
echo "Example 2: $0 -v 9.0.0.CR1 -vr 9.0.0.CR1a -is https://devstudio.redhat.com/${rootFolder}/staging/updates/integration-stack/discovery/9.0.0.Alpha2/ -JBDS"
echo "Example 1: $0 -v 4.3.0.CR1 -vr 4.3.0.CR1a -is http://download.jboss.org/jbosstools/mars/staging/updates/integration-stack/discovery/4.3.0.Alpha2/"
echo "Example 2: $0 -v 9.0.0.CR1 -vr 9.0.0.CR1a -is https://devstudio.redhat.com/9.0/staging/updates/integration-stack/discovery/9.0.0.Alpha2/ -JBDS"

echo ""
exit 1
Expand All @@ -37,18 +36,19 @@ while [[ "$#" -gt 0 ]]; do
'-vr'|'-versionWithRespin') versionWithRespin="$2"; shift 1;;
'-is') ISsite="$2"; shift 1;;
'-q') qualities="$qualities $2"; shift 1;;
'-r'|'-rootFolder') rootFolder="$2"; shift 1;;
*) OTHERFLAGS="${OTHERFLAGS} $1"; shift 0;;
esac
shift 1
done

if [[ $DESTINATION = $TOOLS ]]; then
directoryXML=jbosstools-directory.xml
rootFolder=mars
if [[ ! $rootFolder ]]; then rootFolder=mars; fi
destinationURL=http://download.jboss.org/jbosstools/${rootFolder}
else
directoryXML=devstudio-directory.xml
rootFolder=9.0
if [[ ! $rootFolder ]]; then rootFolder=9.0; fi
destinationURL=https://devstudio.redhat.com/${rootFolder}
fi
for quality in ${qualities}; do
Expand Down

0 comments on commit 4278cb7

Please sign in to comment.