Bug 526505 - [COMPONENTS] add meta to the script
Change-Id: I605d14e34afde5efc42c001718fc307e0c4ec5f6
Signed-off-by: Francois Le Fevre <francois.le-fevre@cea.fr>
diff --git a/components/org.eclipse.papyrus.components.parent/src/main/script/publish.sh b/components/org.eclipse.papyrus.components.parent/src/main/script/publish.sh
index 37f0531..976203a 100755
--- a/components/org.eclipse.papyrus.components.parent/src/main/script/publish.sh
+++ b/components/org.eclipse.papyrus.components.parent/src/main/script/publish.sh
@@ -111,8 +111,8 @@
fi
# Determine the local update site we want to publish to
-echo "Listing ~/.hudson/jobs/"
-ls -la ~/.hudson/jobs/
+echo "Listing ~/.hudson/jobs/${jobName}"
+ls -la ~/.hudson/jobs/${jobName}
jobDir=$(readlink -f ~/.hudson/jobs/${jobName}/builds/${buildId})
@@ -122,11 +122,6 @@
exit 1
fi
-if [ ! -d "$jobDir" ];
-then
- echo "The specified buildId does not refer to an existing build: $buildId , see ${jobName} at ~/.hudson/jobs/${jobName}/builds/${buildId}"
- exit 1
-fi
echo "jobName=${jobName} buildId=${buildId} jobDir=${jobDir}"
localUpdateSite=${jobDir}/${targetUpdateSite}