Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bcf3e96681755348c58b9f2bb0d64d8164ccdbc5 (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
promoteSignal=/opt/public/modeling/mdt/papyrus/papyrus-trunk-nightly-tests/promoteSignal
promoteVersion=/opt/public/modeling/mdt/papyrus/papyrus-trunk-nightly-tests/promoteVersion
promoteDirName=/opt/public/modeling/mdt/papyrus/papyrus-trunk-nightly-tests/promoteDirName

if [[ ( -n "$BUILD_ID" ) && ( -n "$BUILD_VERSION" ) ]]; then
	zipName="Papyrus-TestResults-${BUILD_ID}.zip"
else
	zipName="Papyrus-TestResults.zip"
fi

rm -rf tmp
mkdir -p tmp
cp -r buildroot/result/testresults tmp

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

# create the test results zip
(cd tmp && zip -r "$zipName" *)
mv "tmp/$zipName" .

if [[ ( -n "$BUILD_ID" ) && ( -n "$BUILD_VERSION" ) ]]; then
	echo ${BUILD_ID} > $promoteSignal
	echo ${BUILD_VERSION} > $promoteVersion
fi

Back to the top