Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d8870346abbaccbb07c7002750bffb16007ffa0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#--------------------------------------------------------------------------------
# Copyright (c) 2012 CEA LIST.
#
#    
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#    Nicolas Bros (Mia-Software)
#--------------------------------------------------------------------------------

########## publishing ##########

p2UpdateSiteDir=${WORKSPACE}/buildroot/result/output/org.eclipse.papyrus.extra.build.feature_*-eclipse.feature/site.p2
updateSite=/shared/jobs/${JOB_NAME}/updateSite

promoteSignal=/opt/public/modeling/mdt/papyrus/papyrus-0.10-maintenance-extra-nightly/promoteSignal
promoteDirName=/opt/public/modeling/mdt/papyrus/papyrus-0.10-maintenance-extra-nightly/promoteDirName
# note: the version and build id used by the cronPromote.sh are taken from papyrus-0.10-maintenance-nightly

#FULL_BUILD_ID=$(cat $promoteDirName)
updateZipName=Papyrus-Extra-Update.zip
zipName=Papyrus-Extra.zip

rm -rf tmp
mkdir -p "tmp/extra"

# create the update site zip
(cd $p2UpdateSiteDir && zip -r $updateZipName *)
mv $p2UpdateSiteDir/$updateZipName "tmp/extra"

rm -rf $updateSite
mv $p2UpdateSiteDir $updateSite

mv revision.txt "tmp/extra"

# copy the build log into the result
wget --quiet --no-check-certificate ${HUDSON_URL}/job/${JOB_NAME}/${BUILD_NUMBER}/consoleText -O "${WORKSPACE}/tmp/extra/buildlog.txt"

(cd tmp && zip -r $zipName *)
mv tmp/$zipName .

if [ "$BUILD_TYPE" == "N" ]; then
	touch $promoteSignal
fi

Back to the top