Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0eaf93e13fc3ab3193355be28b1525f13ae860ea (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 [[ "$BUILD_TYPE" == "N" && ( -n "$BUILD_ID" ) && ( -n "$BUILD_VERSION" ) ]]; then
	echo ${BUILD_ID} > $promoteSignal
	echo ${BUILD_VERSION} > $promoteVersion
fi

Back to the top