Author: nickboldt
Date: 2010-11-09 12:02:29 -0500 (Tue, 09 Nov 2010)
New Revision: 26386
Modified:
trunk/build/target-platform/publish.sh
Log:
add overrides for targetFile, repoPath, destinationPath, and DESTINATION; set defaults for
JBDS and JBT
Modified: trunk/build/target-platform/publish.sh
===================================================================
--- trunk/build/target-platform/publish.sh 2010-11-09 17:02:20 UTC (rev 26385)
+++ trunk/build/target-platform/publish.sh 2010-11-09 17:02:29 UTC (rev 26386)
@@ -1,12 +1,28 @@
#!/bin/bash
# Hudson creates a repo in ${repoPath}; copy it into other places for access by
downstream jobs and users
+# defaults for JBoss Tools
targetFile=e361-wtp322.target
-
repoPath=/home/hudson/static_build_env/jbds/tools/sources/REPO
destinationPath=/home/hudson/static_build_env/jbds/target-platform
DESTINATION=tools@filemgmt.jboss.org:/downloads_htdocs/tools/updates/target-platform
+while [ "$#" -gt 0 ]; do
+ case $1 in
+ '-targetFile') targetFile="$2"; shift 2;;
+ '-repoPath') repoPath="$2"; shift 2;;
+ '-destinationPath') destinationPath="$2"; shift 2;;
+ '-DESTINATION') DESTINATION="$2"; shift 2;;
+ '-jbds')
+ # defaults for JBDS
+ targetFile=jbds400-e361-wtp322.target
+ repoPath=/home/hudson/static_build_env/jbds/tools/sources/JBDS-REPO
+ destinationPath=/home/hudson/static_build_env/jbds/jbds-target-platform
+ DESTINATION=/qa/services/http/binaries/RHDS/updates/jbds-target-platform
+ ;;
+ esac
+done
+
if [[ -d ${repoPath} ]]; then
cd ${repoPath}