Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-06-15 13:47:31 +0000
committerDavid Williams2016-06-15 13:47:47 +0000
commit5245e9465853204ccc2a747668f3cea6fae1fa62 (patch)
tree944baa54e7f4b8046088a8cc0dad74090c02c8f4 /production/sdk/cleaners/cleanupNightlyRepo.sh
parent44c9b7f717d82fb082b9ced6ee0bc41641f4ed65 (diff)
downloadeclipse.platform.releng.aggregator-5245e9465853204ccc2a747668f3cea6fae1fa62.tar.gz
eclipse.platform.releng.aggregator-5245e9465853204ccc2a747668f3cea6fae1fa62.tar.xz
eclipse.platform.releng.aggregator-5245e9465853204ccc2a747668f3cea6fae1fa62.zip
Bug 487044 - Migrate cron jobs to Releng HIPP -fine tuning scripts
Diffstat (limited to 'production/sdk/cleaners/cleanupNightlyRepo.sh')
-rwxr-xr-xproduction/sdk/cleaners/cleanupNightlyRepo.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/production/sdk/cleaners/cleanupNightlyRepo.sh b/production/sdk/cleaners/cleanupNightlyRepo.sh
index fd5493a5b..d026a3d6c 100755
--- a/production/sdk/cleaners/cleanupNightlyRepo.sh
+++ b/production/sdk/cleaners/cleanupNightlyRepo.sh
@@ -11,6 +11,15 @@
# IBM Corporation - initial API and implementation
#*******************************************************************************
+# To allow this cron job to work from hudson, or traditional crontab
+if [[ -z "${WORKSPACE}" ]]
+then
+ export UTILITIES_HOME=/shared/eclipse
+ export WORKSPACE=/shared/eclipse
+else
+ export UTILITIES_HOME=/${WORKSPACE}/utilities/production
+fi
+
function writeHeader ()
{
compositeRepoDir="$1"

Back to the top