Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Fixed build: add symlink to latest SNAPSHOIT build (in progress)
Browse files Browse the repository at this point in the history
Change-Id: I04deed1c3bf3b8419f092a8706fa5767523080a2
Signed-off-by: Jochen Hiller <j.hiller@telekom.de>
  • Loading branch information
Jochen Hiller committed Oct 26, 2015
1 parent 6c50510 commit 4123b41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions distribution/publish/publish.sh
Expand Up @@ -39,21 +39,24 @@ cp ./distribution/build/distributions/*.tar.gz $UPLOAD_LOCATION
echo -n "$BUILD_TYPE/"
echo `(cd ./distribution/build/distributions/ ; ls *.zip)`
cp ./distribution/build/distributions/*.zip $UPLOAD_LOCATION
echo " "

# now link latest snapshot to this build
if [ "$BUILD_TYPE" == "snapshots" ] ; then
echo "Now link latest snapshot to $version"
echo "Link latest snapshot to $buildVersion"
(
cd $UPLOAD_LOCATION
for f in concierge-incubation-SNAPSHOT-latest.tar.gz concierge-incubation-SNAPSHOT-latest.zip ; do
if [ -f $f ] ; then rm $f ; fi
if [ -f $f ] ; then rm $f ; fi
done
echo ln -s "$buildVersion".tar.gz concierge-incubation-SNAPSHOT-latest.tar.gz
ln -s "$buildVersion".tar.gz concierge-incubation-SNAPSHOT-latest.tar.gz
echo ln -s "$buildVersion".zip concierge-incubation-SNAPSHOT-latest.zip
ln -s "$buildVersion".zip concierge-incubation-SNAPSHOT-latest.zip
)
fi

echo " "

) | tee >>$PUBLISH_LOG

echo "See http://download.eclipse.org/concierge/$BUILD_TYPE/?d for uploaded files..."

0 comments on commit 4123b41

Please sign in to comment.